SUPPORT THE SITE WITH A CLICK

Subscribe Rss:

SUPPORT THE SITE WITH A CLICK

Friday, November 30, 2007

wc - LinuxCommand - UnixCommand

Prints the number of bytes,words,and lines in files.


SYNTAX


wc[OPTION}..[FILE]..


Options


wc -c
--bytesprint the byte counts

here we are assuming a file called index.html.

root@aspx-desktop:/media/sda7/# wc -c index.html
13976 index.html

wc -m
--charsprint the character counts


root@aspx-desktop:/media/sda7/# wc -m index.html
13976 index.html

wc -l
--linesprint the newline counts


root@aspx-desktop:/media/sda7/# wc -l index.html
418 index.html

wc -w
--wordsprint the word counts


root@aspx-desktop:/media/sda7/# wc -w index.html
1196 index.html