I have a text/csv file that contains , amongst others, rows that look like this:
05:21:20PM Driving 46 84.0 Some Road; Some Ext 1; in SomePLace; Long 38 12 40.6 E Lat 29 2 47.2 S
There are other rows containing data that I am not after.
I am only looking to extract the timestamp, and then the LatLong .
The only thing constant in the rows I am interested in is the timstamp at the beginning, that is always 8 characters long and ends with PM or AM, and then the Lat/Long that starts with the word "Long" and ends in an "S".
Is there any way that I can run through this file and only strip out these two peices of text, concatenate them into a new row, and ignoring all other rows that does not have the timestamp as first entry AND the Lat/Long part at the end ( some rows have a timestamp in beginning but not the lat/long)
;nested row format there.N, not justS.