14,954
edits
| Line 7: | Line 7: | ||
== Text file manipulation == | == Text file manipulation == | ||
=== Display the first lines of text file === | |||
=== Display the content of text file === | |||
==== Display the first lines of text file ==== | |||
* [http://en.wikipedia.org/wiki/Head_(Unix) head] <nowiki>[options]</nowiki> ''filename'' ({{OS}}: {{Linux}}) | * [http://en.wikipedia.org/wiki/Head_(Unix) head] <nowiki>[options]</nowiki> ''filename'' ({{OS}}: {{Linux}}) | ||
* [http://en.wikipedia.org/wiki/Vi vi] <nowiki>[options]</nowiki> ''filename'' (and press {{kbd | key=gg}}) ({{Linux}}) | * [http://en.wikipedia.org/wiki/Vi vi] <nowiki>[options]</nowiki> ''filename'' (and press {{kbd | key=gg}}) ({{Linux}}) | ||
* [http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (and press {{kbd | key=gg}}) ({{Linux}}); Open file and press {{kbd | key=gg}} for [http://www.vim.org/ gVim] ({{Win}}) | * [http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (and press {{kbd | key=gg}}) ({{Linux}}); Open file and press {{kbd | key=gg}} for [http://www.vim.org/ gVim] ({{Win}}) | ||
=== Display the last few lines of text file === | ==== Display the last few lines of text file ==== | ||
* [http://en.wikipedia.org/wiki/Tail_(Unix) tail] <nowiki>[options]</nowiki> ''filename'' ({{Linux}}) | * [http://en.wikipedia.org/wiki/Tail_(Unix) tail] <nowiki>[options]</nowiki> ''filename'' ({{Linux}}) | ||
* [http://unix.stackexchange.com/questions/47407/cat-line-x-to-line-y-on-a-huge-file tail - cat line X to line Y on a huge file - Unix & Linux Stack Exchange] | * [http://unix.stackexchange.com/questions/47407/cat-line-x-to-line-y-on-a-huge-file tail - cat line X to line Y on a huge file - Unix & Linux Stack Exchange] | ||
| Line 18: | Line 21: | ||
* [http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (and press G) ({{Linux}}); Open file and press G for [http://www.vim.org/ gVim] ({{Win}}) | * [http://www.tuxfiles.org/linuxhelp/vimcheat.html vim] <nowiki>[options]</nowiki> ''filename'' (and press G) ({{Linux}}); Open file and press G for [http://www.vim.org/ gVim] ({{Win}}) | ||
* [http://tailforwin32.sourceforge.net/ Tail for Win32] GUI interface ({{Win}}) {{exclaim}} not support Unicode file for v.4.2.6 | * [http://tailforwin32.sourceforge.net/ Tail for Win32] GUI interface ({{Win}}) {{exclaim}} not support Unicode file for v.4.2.6 | ||
==== Display the entire content of text file ==== | ==== Display the entire content of text file ==== | ||