Search Text In Files With Freeware for Windows, Mac OS/X and Linux

Portable tools requiring no installation.

Depeche View: GUI tool for Windows (and Mac, Linux when using WINE)

Depeche View loads all ASCII text files of a folder, showing everything as one long text.

  • search as you type: you type a word, stop typing - results are shown immediately.
  • search by clicking on a word: SHIFT+click on any word on screen, and it is searched.
  • simple combined searches: type "apple OR banana NOT apples" to search lines containing apple or banana but not apples.
  • Depeche View Lite is Freeware and fully portable, running without installation.

Read more here.

 

SFK XFind: command line tool for Windows, Mac and Linux

XFind is part of the Swiss File Knife, a multi function command line tool. It runs instantly without installation and on nearly every operating system.

Examples for use under Windows:

sfk xfind -text "/class [bytes]{[bytes]}/[all]\n\n/"
 -dir mydir -file .hpp +tofile out.txt
   collect class definitions from mydir and write output
   indirectly (via command chaining) to out.txt [13]
sfk xfind in.txt -text "/foo*bar/"
   search in.txt for patterns starting with foo and ending
   with bar, in the same line, with up to 4000 characters inbetween.
sfk xhex -text "/foo[0.100000 bytes]bar/" -dir mydir
   search all text and binary files of mydir for patterns of
   foo and bar with 0 to 100000 bytes (including NULL, CR
   and LF) inbetween and print output as hex dump.
sfk xfind -text "/printf(**);/" -dir mydir -file .cpp
   find all printf statements in source code, including statements
   across multiple lines.
sfk xfind in.dat "/foo[0.100 bytes of (a-z0-9_@ )]bar/"
   searches a single input file in.dat for all phrases
   starting foo and ending bar, with 0 to 100 characters
   inbetween being alphanumeric, @ or _ or space.
sfk xfind -text "/foo*bar/[part2]\n" -dir mydir -file .txt
   find foo*bar in all .txt files of folder mydir
   but print only the text between foo and bar.
sfk xfind -text "/\x66\x6f\x6f[0.100 bytes]\x62\x61\x72/"
 -dir mydir -file .exe +view
   find binary data starting with bytes 0x66, 0x6f, 0x6f,
   ending with 0x62, 0x61, 0x72 and up to 100 bytes inbetween
   in all .exe files of mydir and show result in dview. [14]

Read more here