reverse engineered


I was recently dealing with a 600MB CSV file which I needed to import into a MySQL database.

In order to have a rough idea of how many rows I would have, I needed to count the number of lines in the CSV file. A file that size would crash any text editor, let alone take an age to open, so the fastest thing was to use the commandline.

wc -l file.csv

comments powered by Disqus