How to Count Rows in a File

Question - I want to know how many rows are inside a file

Answer - On Linux, you can use the wc -l command 

Syntax

wc -l <file_name>

Example

$ wc -l new_file.csv

  • 39
  • 19-Jul-2015
  • 643 Views