Is there any utility to make searches for a string inside ASCII files to avoid command line searches?
How to make a command line search, for example for the string "test" inside all files in the directory /var/x/?
|
Is there any utility to make searches for a string inside ASCII files to avoid command line searches? How to make a command line search, for example for the string "test" inside all files in the directory |
|||||
|
|
You can use searchmonkey. The tool is available in the repositories, so you can simply
On the other hand, command line search with grep is really intended for that... Here is a screenshot from searchmonkey
|
||||
|
|
|
Unfortunately grep does a very poor job of searching inside Word (.doc) files, but you can pipe catdoc output into grep. I'm no programmer but this little script works well for me:
All improvements and suggestions welcome! |
|||||
|
|
You can use regexxer it is a great GUI search/replace tool for regular expressions. you can download by:
|
|||
|
|
|
I assume that your first question is about a GUI alternative to the As for the command line, try
If you want to search recursively (i.e. not only in
To avoid grepping the files which grep thinks to be binary, use the
If grep thinks a file is binary (based on first few bytes of the file), it will assume it does not match instead of going through the whole file. |
|||||||||||||||||
|