command: wc
purpose: print newline, word, and byte counts for each file

syntax: wc [options] filename

examples:

1. To print the byte counts
    $ wc -c filename

2. To print the character counts
    $ wc -m filename

3. To print the newline counts
    $ wc -l filename

4. To print the length of the longest line
    $ wc -L filename

5. To print the word counts
    $ wc -w filename

6. $ wc
    prints A B C filename
    A - Number of lines
    B - Number of words
    C - Number of bytes

regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to