Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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