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

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

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

networking - Slave steals IP meant for bonded interface - Ask Ubuntu