I have a csv file. I need to change the date format in the data inside the file.
ABCD,1234,01022019
I tried the following:
awk -F ',' '{printf("%s,%s,",$1,$2);system("date -d "$3" +%Y-%m-%d");}' new
I need to change the date format in that file, not to write to another file.