next up previous contents
Next: which - Shows the Up: Other Useful Commands Previous: top - To see   Contents

wc - Count characters, words or lines is a file

Example:-

cat myfile | wc -l

List the number of lines in the file ``myfile''.



P.D. Gronbech (IT Staff) 2015-10-02