TRC is primarily funded by ad revenue. If you like the content you find here, don't block the ads check them out instead. Thank you.
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,410
    Like
    432
    Liked 474 in 271 posts
    Blog Entries
    2

    Default Search software


    TRC is primarily funded by ad revenue. If you like
    the content you find here, don't block the ads check
    them out instead. Thank you.
    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. TRC is primarily funded by ad revenue. If you like the content you find here, don't block the ads check them out instead. Thank you.
  3. #2
    Should Get Out More DefTrap's Avatar
    Join Date
    Jan 2008
    Location
    Roger Barlow's Tour of Europe
    Posts
    22,739
    Like
    2,200
    Liked 1,995 in 1,191 posts

    Default Re: Search software

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

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


  5. #3
    Should Get Out More Olly's Avatar
    Join Date
    Jul 2009
    Location
    Darlington
    Posts
    15,750
    Like
    496
    Liked 1,182 in 585 posts

    Default Re: Search software

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

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


  7. #4
    Should Get Out More Mussels's Avatar
    Join Date
    Jan 2008
    Location
    Not in London
    Posts
    17,051
    Like
    1,176
    Liked 1,076 in 767 posts

    Default Re: Search software

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

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


  9. #5
    Should Get Out More Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    35,192
    Like
    4,219
    Liked 4,415 in 2,766 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

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


  11. #6
    Should Get Out More TheEnglishman's Avatar
    Join Date
    Dec 2007
    Location
    Woking
    Posts
    5,719
    Like
    12
    Liked 693 in 432 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

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


  13. #7
    Really Bored wheelnut's Avatar
    Join Date
    Jan 2008
    Location
    Hanging by a thread
    Posts
    4,410
    Like
    432
    Liked 474 in 271 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

  14. #8
    Should Get Out More Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    35,192
    Like
    4,219
    Liked 4,415 in 2,766 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.

  15. #9
    Really Bored wheelnut's Avatar
    Join Date
    Jan 2008
    Location
    Hanging by a thread
    Posts
    4,410
    Like
    432
    Liked 474 in 271 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.

  16. #10
    Should Get Out More Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    35,192
    Like
    4,219
    Liked 4,415 in 2,766 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

  17. #11
    Should Get Out More Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    35,192
    Like
    4,219
    Liked 4,415 in 2,766 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.

  18. #12
    Really Bored wheelnut's Avatar
    Join Date
    Jan 2008
    Location
    Hanging by a thread
    Posts
    4,410
    Like
    432
    Liked 474 in 271 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

  19. #13
    Should Get Out More Yorick's Avatar
    Join Date
    Jan 2008
    Location
    Lanzarote
    Posts
    35,192
    Like
    4,219
    Liked 4,415 in 2,766 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.

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


  21. #14
    Should Get Out More Julian_Boolean's Avatar
    Join Date
    Jan 2008
    Location
    Nearly at the dawn of Britain
    Posts
    13,074
    Like
    722
    Liked 2,128 in 1,274 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