Hi there, I have a csv file with some columns comma sepated like this :
4502-17,PETER,ITA2,LEGUE,92,ME - HALF,23/05/10 15:00
4502-18,CARL,ITA2,LEGUE,96,ME - HALF,20/01/09 14:00
4502-19,OTTO,ITA2,LEGUE,97,ME - MARY,23/05/10 15:00
As you can see the column n. 7 is a timestamp column, I need to estract just the year from column n. 7 adding a new column ( number 8 ) to the csv file so that the final result must the the following :
4502-17,PETER,ITA2,LEGUE,92,ME - HALF,23/05/10 15:00,2010
4502-18,CARL,ITA2,LEGUE,96,ME - HALF,20/01/09 14:00,2009
4502-19,OTTO,ITA2,LEGUE,97,ME - MARY,23/05/10 15:00,2010
I think the right solution is awk but my knowledge of awk if vary poor.
Thank you in adeance and happy new year to everybody.