[ILUGC] GNU/Linux commands - wc

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Sat, 3 Sep 2016 17:03:51 +0530

wc - command counts and displays the number of lines, words, character
       and number of bytes enclosed in a file.
# wc -[options] filename

# wc -c filename

prints the byte counts

# wc -m filename

prints the character counts

# wc -l filename

prints the new line counts

# wc -L filename

prints the length of the longest line

# wc -w filename

prints the word counts


regards,

T.Dhanasekar


_____________________________________
ILUGC List: //www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/

Other related posts:

  • » [ILUGC] GNU/Linux commands - wc - Dhanasekar