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.

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

1 Answer 1

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

 
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.