Is it possible to get the number of rows in a CSV file without opening it?

前端 未结 4 1527
逝去的感伤
逝去的感伤 2020-12-03 10:13

I have a CSV file of size ~1 GB, and as my laptop is of basic configuration, I\'m not able to open the file in Excel or R. But out of curiosity, I would like to get the numb

4条回答
  •  [愿得一人]
    2020-12-03 10:38

    For Linux/Unix:

    wc -l filename
    

    For Windows:

    find /c /v "A String that is extremely unlikely to occur" filename
    

提交回复
热议问题