I have a large CSV file and need to split it too multiple CSV files, using column 3 as the identifier and the resultant files will be named by the value in column 3
I am using the following:
awk -F ',' '{print > ($3".csv")}' playpass.csv
However I'm getting the error:
awk: cannot open "04477C9A875B80.csv" for output (Too many open files)
I know I need to close the files but after a few attempts, I'm getting nowhere and now back to a blank canvas
I tried the following with no luck as I get the same error
awk -F ',' '{close($1); i++}{print > $1}' query_result_2019-07-20T15_31_42.941Z.csv
Any advice?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…