Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

awk split a csv file based on column value

awk -F, '{outfile=($1 ".csv") ; print substr($0,index($0,$2)) >>outfile ; close(outfile)}' <name_of_input_file
Source by apple.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #awk #split #csv #file #based #column
ADD COMMENT
Topic
Name
2+7 =