Hi,
I am new to awk/unix and am trying to put together a script to manipulate the date column in a csv file.
I have file1.csv with the following contents:
Date,ID,Number,Amount,Volume,Size
01-Apr-2014,WERFG,998,105873.96,10873.96,1342.11
01-Apr-2014,POYFR,267,5681.44,5681.44,462.96
I want to format the date column as follows -> yyyy-mm-dd and want the output saved in a tempfile:
Date,ID,Number,Amount,Volume,Size
2014-04-01,WERFG,998,105873.96,10873.96,1342.11
2014-04-01,POYFR,267,5681.44,5681.44,462.96
Is there a simple awk script to achieve this?
Appreciate the help!!
Thanks,