I want to split a file into multiple files and save the file in date format.
Why doesn\'t this command work?
awk -v DATE= date \'+%d%m%Y\'-F\",\" \'N
this should work
awk -F, -v date=$(date +%d%m%Y) 'NR>1{print > "Test_"date".CSV_"$1".csv"}' file
if not, try first
awk -v date=$(date +%d%m%Y) 'BEGIN{print date}'
to check whether date is correctly set as an awk variable.
awk