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

How do I list the lines that contains the matches from the "find" command ? ie., I would like to list all the matching lines in a separate window. Currently one can only goto next / previous 'find'. This is something like "list lines containing" option in Ultra edit. For Eg., I have a text file that contains lines like "c:\src..." which are filenames. I want to "find" src that will give me all the filenames, In the find command I can only goto next/previous find, what I would like is to get all the "found" items that I can copy/paste into a separate edit window that can be saved as a file

share|improve this question
up vote 0 down vote accepted

You can highlight the text you want to search for, then use Alt+F3 to select all occurences. You can then use ctrl + L to expand the selection to the whole line, and ctrl+C to copy.

If you're using OSX, replace ctrl with cmd.

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.