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

permissions - Mount is denied because the NTFS volume is already exclusively opened - Ask Ubuntu

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

software installation - How to install linux driver for a lb-link wireless usb adapter - Ask Ubuntu