Sign in to follow this  
Followers 0
BINREV SPYD3R

HPR - HPR0972: LITS: Episode 005 - wc

1 post in this topic

Fear not Dann has not decided to branch and do a plumming show. Rather he sticks with the plaan and brings us yet another excellent explanation of a common unix utility, namely wc http://www.linuxintheshell.org/2012/04/24/episode-005-wc/Ever want to know how many lines are in a file? How about how many words are in a file or even how many characters? Well then the “wc” command is just for you.  The “wc” command, short for word count, is a very simple command that will print “new line, word and byte counts for file specified, and a total count for all files combined if more than one file is included.”Consider the following little ditty:the linux wc commandfor those not in then knowstands for word count anddoes a lot you should knowIt counts lines and words and bytesproducing output on sitequickly giving you the numberswithout any blundersExecuting the following command:wc poem.txtResults in the following output:9 40 215 poem.txtTo break it down:9 lines40 words215 characters

Go to this episode

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0