I have a log file with several lines in it like:
C:\WINDOWS\vb.ini:lkxups
C:\WINDOWS\vminst.logvgana
C:\WINDOWS\wiaservc.log:cxdqpj
C:\WINDOWS\wiaservc.loghcmgb
I'm trying to figure out a way using sed to chop off the second ':'and everything after it.
How can I tell sed to replace the second occurence of ':' ?
I know how to to do global search and replace but I'm not sure
how to tell sed to only find second instance of something.
C:\WINDOWS\vb.ini:lkxups
C:\WINDOWS\vminst.logvgana
C:\WINDOWS\wiaservc.log:cxdqpj
C:\WINDOWS\wiaservc.loghcmgb
I'm trying to figure out a way using sed to chop off the second ':'and everything after it.
How can I tell sed to replace the second occurence of ':' ?
I know how to to do global search and replace but I'm not sure
how to tell sed to only find second instance of something.