Linux commands: Difference between revisions

Jump to navigation Jump to search
275 bytes added ,  7 June 2016
Line 23: Line 23:
* [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]


newline count, word count
newline count (count the number of lines of a file), word count
* newline count: {{kbd | key= <nowiki>wc -l <filename></nowiki>}} <ref>[https://en.wikipedia.org/wiki/Wc_(Unix) wc (Unix) - Wikipedia, the free encyclopedia]</ref> ex: {{kbd | key= <nowiki>wc -l *.txt</nowiki>}} to print the newline count of txt files of the current folder
* {{kbd | key= <nowiki>wc -l <filename></nowiki>}} for {{Linux}} <ref>[https://en.wikipedia.org/wiki/Wc_(Unix) wc (Unix) - Wikipedia, the free encyclopedia]</ref> ex: {{kbd | key= <nowiki>wc -l *.txt</nowiki>}} to print the newline count of txt files of the current folder  
* {{kbd | key= <nowiki>wc -l "$(cygpath -u '<path to file>')"</nowiki>}} for cygwin on {{Win}} ex: {{kbd | key= <nowiki>wc -l "$(cygpath -u 'c:\Program Files\file.txt')"</nowiki>}}<ref>[[Cygwin convert windows path to linux path]]</ref>


Save a Unix manpage as plain text
Save a Unix manpage as plain text

Navigation menu