[PLUG] Correcting duplicate strings in files
david
dafr+plug at dafr.us
Wed Jun 20 00:41:05 UTC 2018
On 06/19/2018 11:52 AM, Rich Shepard wrote:
> I made a mistake when writing an awk script that inserts the time of an
> observation with its value. I had 16:00 twice in a row rather than 16:00
> and
> 17:00. This holds for every day in the year, and I have about 12 year's in
> which to make the correction. Specifically, changing the second 16:00 to
> 17:00. A sample:
>
> 2012-10-01,16:00,297.94
> 2012-10-01,16:00,297.94
>
While I believe the answer has already been found, would the 'uniq'
command have been useful as an alternative?
david
More information about the PLUG
mailing list