Is there a Windows utility that will allow you to search against a large collection of small text files, and display not just a list of the found files, but the contents of all matching files in a single scrollable column, with lines separating each matching file, the results being sortable by different criteria?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

If you borrow Unix utilities (e.g. by installing any of Cygwin, GnuWin32, unxutils etc) then you can probably achieve that with a combination of grep and cat

 cat `grep -l target *.txt | sort {options}`

or maybe

 grep -l target *.txt | sort {options} | xargs -n 1 cat blanklines.txt

You can probably do it using Windows Powershell.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.