|
|
Sponsored Links
|
Maxabout.com > Tips
Counting Words ( The "Wc" Command )Added on:9/1/2008 11:31:37 PM In Linux Tips Rated by 1 users
There are people that love to count beans, myself at the end of the day I love to count the words I have written. <g> And sure, Linux has just the command for that: "wc" The "wc" command comes with a few options: QUOTE -c, print the byte counts -m, print the character counts -l, print the new line counts -L, print the length of the longest line -w, print the word counts When I execute the command on this little bit of text I am typing right now I get: Words:CODE $ wc -w test.txt 184 Desktop/text.txt Lines:CODE $ wc -l test.txt 50 Desktop/text.txt Characters:CODE $ wc -m test.txt 1045 Desktop/text.txt Longest line:CODE $ wc -L test.txt 118 Desktop/text.txt
|
Sponsored Links
Tools
Bookmark/Discuss
|
|
|