14,959
edits
| Line 18: | Line 18: | ||
Search text in a file | Search text in a file | ||
* (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= grep ''keyword'' '' | * 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]] | ||