Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I have a fairly large text file (~1000 lines, Markdown format) that I would like to quickly grep for lines that include or exclude certain words. This is a large file, so I need the feedback of incremental search.

The matching does not depend on the order of the words, so word1 word2 should match a line containing word2 word1.

I have been using commands like grep 'word1|word2' file.txt | grep -v word3, but this quickly becomes tiresome since the words tend to be different each time. This is why I want a GUI, not command line input.

The GUI must hide non-matching lines, not jumping to matching ones as in a normal text editor. Somethings like vim's global command is close, but it's too cumbersome for entering long patterns and doesn't have the quick feedback of incremental search.

A desktop file indexer like recoll is also close, but it is designed for multiple files and does not have incremental search.

The GUI should be very fast to change which ones I'm including or excluding. It should also be possible to retain and recall previous patterns.

Finally, the GUI must run on Linux.

share|improve this question

closed as off-topic by ChrisInEdmonton, fixer1234, nc4pk, mdpc, DavidPostill Dec 12 '15 at 15:07

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – ChrisInEdmonton, fixer1234, nc4pk, mdpc, DavidPostill
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Emacs can be made to do anything. Still, hard to compete with grep in terms of speed. – Claris Jan 26 '14 at 5:17

I was able to get BareGrep working under wine:

http://www.baremetalsoft.com/baregrep-2.00/index.php

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .