Linux commands: Difference between revisions

Jump to navigation Jump to search
27 bytes added ,  21 February 2014
m
Line 23: Line 23:


Search text in a file
Search text in a file
* grep command for multiple files: {{kbd | key=<nowiki>grep -ir "string to search" /path/to/directory</nowiki>}} or {{kbd | key= grep ''keyword'' /path/to/file}}  ({{Linux}})
* (1)[http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (2)press {{kbd | key= /keyword}}  ({{Linux}})
* (1)[http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (2)press {{kbd | key= /keyword}}  ({{Linux}})
* grep: {{kbd | key=<nowiki>grep -ir "string to search" /path/to/directory</nowiki>}} or {{kbd | key= grep ''keyword'' /path/to/file}}  ({{Linux}})
* cat & grep: {{kbd | key= cat /path/to/file <nowiki>|</nowiki> grep ''keyword''}}  ({{Linux}}) keyword is case sensitive
* cat & grep: {{kbd | key= cat /path/to/file <nowiki>|</nowiki> grep ''keyword''}}  ({{Linux}}) keyword is case sensitive
[[Desktop_search#Search_text_in_files| Search text in files]]
[[Desktop_search#Search_text_in_files| Search text in files]]

Navigation menu