Welcome To Snipplr
Everyone's Recent Bash Snippets Tagged search
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
Fast and easy way to find a keyword inside of files located inside of a directory tree. (eg: looking for a function foo, inside of your applications directory.) This command will display a list of files which contain function foo.
0
781
posted 12 years ago by luizlopes
-l switch output only the names of files in which the text occurs as opposed to each line containing the text<br>
-i switch ignores the case<br>
-r descends into subdirectories<br>
Example:
grep -lir "my search string" /home/account_name/public...
0
580
posted 12 years ago by klovera
Searches down the current directory every file whose name matches (case insensitively) {{file_pattern}} for the regexp {{text}}.
0
537
posted 13 years ago by jarnaldich
I use this bash oneliner all the time to recursively search for a string in large codebases. I use it when searching for mentions of tables, databases, function definitions, function calls etcetera.\r\n\r\nIt searches through a number of file types (...
1
698
posted 13 years ago by niels_bom
grep through all history from within a Subversion working directory, like:
$ svngrep SecItemCopyMatching *
0
677
posted 13 years ago by zingo
I'm constantly checking to see if a certain program or process is running. This helps reduce the typing and the clutter.
0
392
posted 14 years ago by kitzelh
Replace all the occurrences of a string with a replacement in the supplied files.
2
743
posted 15 years ago by sanjivarunsahayamhotmailcom
« Prev 1 Next »