printing portion of a line after a pattern match
Posted on 2010-08-16
Hi, I have a number of lines which I need to extract only the portion of the line after a pattern match is found
2010-08-16 11:34:57,869 text: text: ....text ID: rest of line
so I want to only show "rest of line" based on it finding a match for "ID:"
(note there coud be a different number of ":" preceeding the pattern to match "ID:")
This is to be used in a Solaris 10 shell script and probably using something like awk, but can't find out how to do this