I am trying to parse a filename from a modified apache web access log entry that is tab delimited:
/common/common/img/pictos/klArrowRight.gif /common/common/img/pictos/klArrowRight.gif 03/Dec/2012:00:00:00 127.0.0.1 03/Dec/2012:00:00:00 us 404
I would like it to come out like this:
klArrowRight.gif /common/common/img/pictos/klArrowRight.gif 03/Dec/2012:00:00:00 127.0.0.1 03/Dec/2012:00:00:00 us 404
I have tried something like this in sed:
‘s:.*/::’
However, it is too greedy, and it eats the rest of my line. I have been looking through posts, but so far no luck. Any hints?
the input/output in your question is not well formatted. do you need this?
test
output: