13

Delete characters from each line until meet character ":"

view full story
linux-howto

http://www.unix.com – Hello, I have file that looks like this : Code: 765327564:line1 94:line2 7865:line3 ..... 765322:linen I want to cut all the digits from the beginning of each line up to ":" character and to have everything like this : Code: line1 line2 line3 ..... linen P.S : content of line1 ... linen may contain ":" character so to eliminate what I don;t want from each line with echo $line | cut -d ":" -f 2 will not work well. any ideas? THX. (HowTos)