1

Splitting input CSV file into 3 files

view story
linux-howto

http://www.unix.com – Hi , I am receiving a CSV file that can vary in number of rows each time. I am supposed to split this file into 3 separate files like this: 1. create a file named 'File1.csv' that will contain first 3 rows of the input file 2. create file named 'File2.csv' that will contain last 3 rows of the input file 3. create a file named 'File3.csv' that will contain all rows from the input file, except for the first 3 and last 3 rows Can you please help me with this? Thanks! (HowTos)