Skip to content

How to count the number of line in a file

How to count the number of line in a file

Answer:

Use the wc command

wc -l text.txt

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. How to count the number of duplicated lines in a file
  2. Give line numbers to a text file
  3. How to add line number to a text file?
  4. How to print a file by line range using sed?
  5. Count the number of matching lines from grep

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*