I have a logfile with timestamps in it. Occasionally there are multiple timestamps in one line. Now I would like to remove all of the timestamps from a line but keep the first one.
I can do s/pattern//2
but that only removes the second occurrence and sed
doesn't allow something like s/pattern//2-
.
Any suggestions?