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

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User