Spread a File into Multiple. Csv Files per Each Line of Inputfile Read
I Have. Csv File with over 1000 Rows That Contains on Each Row a Number Ie, "2224441214" That Is the Only Value on the Row. I Need to Break That File up into...
I have .csv file with over 1000 rows that contains on each row a number ie, "2224441214" that is the only value on the row. I need to break that file up into a .csv file named "2224441214.csv" for each row.
ie, "2224441214.csv" "22655443.csv" "2222211564.csv"
1 Answer
It can be done with below awk command,
awk '{print > $0".csv"}' infile.csv
This will create multi .csv files named with numbers read from infile.csv