Answers for "awk split a csv file based on column value"

0

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
Posted by: Guest on October-22-2020

Code answers related to "awk split a csv file based on column value"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language