DEVFYI - Developer Resource - FYI

Is it possible to count number char, line in a file; if so, How?

Unix Interview Questions


(Continued from previous question...)

94. Is it possible to count number char, line in a file; if so, How?

Yes, wc-stands for word count.
wc -c for counting number of characters in a file.
wc -l for counting lines in a file.

(Continued on next question...)

Other Interview Questions