we can count number of lines and characters by using the cmmnd "wc".It is nothing but wordcount cmmnd. to count no.of lines is $wc | -l > filename $wc -l filename $wc -c filename
wc and its options can count no.of line no.of words and no.character. wc <file1> it count no.of lines,no.of words and no.character in file1 wc -l <file1> it counts the no.of lines only in file 1 wc -w <file1> it counts the no.of words only in file 1 wc -c <file1> it counts the no.of character only in file 1