I am trying to create a script to convert two columns in a CSV file which are date and time in unix timestamps. So I need to get a date and time column from each row, convert it and insert it into an extra column at the end containing the timestamp.
Can anyone help me? So far, I have discovered the unix command to convert any time and date dates to unixstamp:
date -d "2011/11/25 10:00:00" "+%s" 1322215200
I have no experience with a bash script so that someone runs me?
Examples of my columns and rows:
Columns: Date, Time, Row 1: 25/10/2011, 10:54:36, Row 2: 25/10/2011, 11:15:17, Row 3: 26/10/2011, 01:04:39,
Thanks a lot!
source share