scripts - spread a file into multiple .csv files per each line of inputfile read - Ask Ubuntu


i have .csv file on 1000 rows contains on each row number ie, "2224441214" value on row. need break file .csv file named "2224441214.csv" each row.

ie, "2224441214.csv" "22655443.csv" "2222211564.csv"

it can done below awk command,

awk '{print > $0".csv"}' infile.csv 

this create multi .csv files named numbers read infile.csv


Comments

Popular posts from this blog

Windows XP installation, no previous version of Windows NT - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

16.04 - Errors were encountered while processing in python - Ask Ubuntu