cancel
Showing results for 
Search instead for 
Did you mean: 
Andrew
Flight Engineer
Flight Engineer
  • 109 Views

Error in wc Options - V9.3 RH124 Chapter 2, Section 5 "Execute Commands With the Bash Shell"

Small thing, but error nonetheless.

Course as noted in Subject, in section entitled "View the Contents of Files" we go through cat, using multiple arguments with cat, using head, using tail, and then, using wc.

In the section on wc the text states "The wc command counts lines, words, and characters in a file. Use the -l, -w, or -c options to display only the given number of lines, words, or characters, respectively."

While it is true that wc options can be used to output lines, words, and characters, the option for characters is m, not c. The byte count is shown when -c is specified (alternately --bytes which is much clearer).

Screencap of the text: 

Andrew_0-1757095978200.png

Screencap of the man page on serverb in the Lab Environment:

Andrew_1-1757096154881.png

A small correction for the textbook, next round of editing, if it hasn't already been specified.

A huge thank you to the editors of this wonderful text for use of the serial (aka Oxford, aka Harvard) comma; it is greatly appreciated by this person!

 

1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 101 Views

@Andrew You are right about this. Thanks for reporting this to us. I will make sure to  report this via an internal JIRA to fix this. 

Join the discussion
You must log in to join this conversation.