Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.