14,962
edits
| Line 21: | Line 21: | ||
* [http://en.wikipedia.org/wiki/Vi vi] <nowiki>[options]</nowiki> ''filename'' ({{Linux}}) | * [http://en.wikipedia.org/wiki/Vi vi] <nowiki>[options]</nowiki> ''filename'' ({{Linux}}) | ||
* {{kbd | key=cat ''filename''}} ({{Linux}}) | * {{kbd | key=cat ''filename''}} ({{Linux}}) | ||
Save a Unix manpage as plain text | |||
* {{kbd | key= <nowiki>man man | col -b > man.txt</nowiki>}} Thanks! [http://www.electrictoolbox.com/article/linux-unix-bsd/save-manpage-plain-text/ Save a Unix manpage as plain text] | |||
Search text in a file | Search text in a file | ||
| Line 26: | Line 29: | ||
* (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}}) | ||
* 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]]<ref>[http://linux.vbird.org/linux_basic/0320bash.php#col 鳥哥的 Linux 私房菜 -- 學習 bash shell] </ref> | ||
== file operation == | == file operation == | ||