Results 1 to 14 of 14

Thread: Search software

  1. #1
    Really Bored wheelnut's Avatar
    Join Date
    Jan 2008
    Location
    Hanging by a thread
    Posts
    4,473
    Like
    435
    Liked 490 in 283 posts
    Blog Entries
    2

    Default Search software

    My google skills have failed me, but I may be looking for something that doesn't exist. I'm looking for some software that will search a normal folder structure (mainly .doc .xls etc) for search strings the file contains and extract/copy the file to a different location. It would be even better if it could extract the file to pdf.

    I can get software that returns the path of the appropriate files but thats going to leave me with manually finding and copying 10k files.

    Any ideas?

  2. #2
    Should Get Out More DefTrap's Avatar
    Join Date
    Jan 2008
    Location
    Roger Barlow's Tour of Europe
    Posts
    23,030
    Like
    2,345
    Liked 2,151 in 1,293 posts

    Default Re: Search software

    Notepad++ is pretty versatile.
    Or old fashioned DOS commands.

  3. The following user liked this post made by DefTrap:


  4. #3
    Should Get Out More Olly's Avatar
    Join Date
    Jul 2009
    Location
    Darlington
    Posts
    15,759
    Like
    502
    Liked 1,220 in 589 posts

    Default Re: Search software

    You searching in file names, or file contents? "Mainly" .doc / .xls - how mainly: what other formats are you considering?

  5. The following user liked this post made by Olly:


  6. #4
    Should Get Out More Mussels's Avatar
    Join Date
    Jan 2008
    Location
    Not in London
    Posts
    17,276
    Like
    1,248
    Liked 1,151 in 821 posts

    Default Re: Search software

    Windows search and the c&p the results to a new folder?

  7. The following user liked this post made by Mussels:


  8. #5
    Retired & Happy Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    36,231
    Like
    4,632
    Liked 4,742 in 2,961 posts
    Blog Entries
    3

    Default Re: Search software

    Output the results to a flat file. Then convert that to a script and edit it, so it sends each file to result folder

  9. The following user liked this post made by Yorick:


  10. #6
    Should Get Out More TheEnglishman's Avatar
    Join Date
    Dec 2007
    Location
    Woking
    Posts
    5,756
    Like
    12
    Liked 705 in 441 posts
    Blog Entries
    4

    Default Re: Search software

    It’s a few lines of script.

    What operating system? Everyone’s assumed windows but it could be Linux or MacOS

  11. The following user liked this post made by TheEnglishman:


  12. #7
    Really Bored wheelnut's Avatar
    Join Date
    Jan 2008
    Location
    Hanging by a thread
    Posts
    4,473
    Like
    435
    Liked 490 in 283 posts
    Blog Entries
    2

    Default Re: Search software

    Quote Originally Posted by Olly View Post
    You searching in file names, or file contents? "Mainly" .doc / .xls - how mainly: what other formats are you considering?
    The contents, probably PDF as well for those that can be searched.

    Quote Originally Posted by Yorick View Post
    Output the results to a flat file. Then convert that to a script and edit it, so it sends each file to result folder
    Cheers Yoz - that's worth a go. The results are around 20k lines tho.

    Quote Originally Posted by TheEnglishman View Post
    It’s a few lines of script.

    What operating system? Everyone’s assumed windows but it could be Linux or MacOS
    The data's sat on server 2012

  13. #8
    Retired & Happy Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    36,231
    Like
    4,632
    Liked 4,742 in 2,961 posts
    Blog Entries
    3

    Default Re: Search software

    Quote Originally Posted by wheelnut View Post



    Cheers Yoz - that's worth a go. The results are around 20k lines tho.
    I used to use Vi to do a global search and insert/replace.

    Maybe Word can do the same.

  14. #9
    Really Bored wheelnut's Avatar
    Join Date
    Jan 2008
    Location
    Hanging by a thread
    Posts
    4,473
    Like
    435
    Liked 490 in 283 posts
    Blog Entries
    2

    Default Re: Search software

    Quote Originally Posted by Yorick View Post
    I used to use Vi to do a global search and insert/replace.

    Maybe Word can do the same.
    Notepad should do it with a bit of patience.

  15. #10
    Retired & Happy Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    36,231
    Like
    4,632
    Liked 4,742 in 2,961 posts
    Blog Entries
    3

    Default Re: Search software

    Quote Originally Posted by wheelnut View Post
    Notepad should do it with a bit of patience.
    Vi would take less than a minute to write and operate

  16. #11
    Retired & Happy Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    36,231
    Like
    4,632
    Liked 4,742 in 2,961 posts
    Blog Entries
    3

    Default Re: Search software

    Quote Originally Posted by Yorick View Post
    Vi would take less than a minute to write and operate
    Or write a shell script to read each line of the file names in turn, then do as you need.

    Perl can replace shell if easier.

  17. #12
    Really Bored wheelnut's Avatar
    Join Date
    Jan 2008
    Location
    Hanging by a thread
    Posts
    4,473
    Like
    435
    Liked 490 in 283 posts
    Blog Entries
    2

    Default Re: Search software

    Quote Originally Posted by Yorick View Post
    Vi would take less than a minute to write and operate
    I've never used it but I shall have look - cheers

  18. #13
    Retired & Happy Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    36,231
    Like
    4,632
    Liked 4,742 in 2,961 posts
    Blog Entries
    3

    Default Re: Search software

    Quote Originally Posted by wheelnut View Post
    I've never used it but I shall have look - cheers
    Vi is very clever, but Perl is more versatile

    At McAfee I used to run tests on a million 'viruses' using 10 different AV packages. The results each went to flat files, in various result formats.

    I was able to write a simple Perl script that read each file line by line, then analysed each result, splitting the line into variables , and do whatever was necessary.

    Very versatile and powerful.

  19. The following user liked this post made by Yorick:


  20. #14
    Should Get Out More Julian_Boolean's Avatar
    Join Date
    Jan 2008
    Location
    Nearly at the dawn of Britain
    Posts
    13,630
    Like
    812
    Liked 2,405 in 1,429 posts

    Default Re: Search software

    Quote Originally Posted by Yorick View Post
    Vi would take less than a minute to write and operate
    But working out the syntax to get the result you want takes 3 hours the first time you need to do it.

    Sent from my SM-T560 using Tapatalk

Go Back to Forum My Forum