Useful sed Commands

To break up a large .csv file into multiple smaller files with 1000 lines:
sed -n '1,1001p' large_table.csv > output_1.csv
sed -n '1002,2001p' large_table.csv > output_2.csv

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.