hpr0972 :: LiTS 005: wc
Print newline, word, and byte counts for files with the wc command
Hosted by Dann on Tuesday, 2012-04-24 is flagged as Explicit and is released under a CC-BY-SA license.
wc.
(Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr0972
Listen in ogg,
spx,
or mp3 format. Play now:
Duration: 00:08:58
Linux in the Shell.
Linux In The Shell aims to explore the use of many commands a user can run in the Bash Shell. Tutorials include a write up with examples, an audio component about the write up, and a video component to demonstrate the usage of the command.
The website is https://www.linuxintheshell.com/
Fear not Dann has not decided to branch and do a plumbing show. Rather he sticks with the plan and brings us yet another excellent explanation of a common unix utility, namely wc
https://www.linuxintheshell.com/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 command
for those not in the know
stands for word count and
does a lot you should knowIt counts lines and words and bytes
producing output on site
quickly giving you the numbers
without any blunders
Executing the following command:
wc poem.txt
Results in the following output:
9 40 215 poem.txt
To break it down:
- 9 lines
- 40 words
- 215 characters