I'm trying to parse a log file, very similar to /var/log/messages, where there are some quite well defined fields at the start of the line, but then some free form text at the end. I can extract and process the first few fields quite easily with $1 $2 $3 etc, but how can I get awk to print out the rest of the line after field $3 and ignore any delimiter characters in the free from text?
For example, consider the input 01/10/2003 01:02:03 MyCommand: Here is some free form text from command When parsed with awk: $1 = date (01/10/2003) $2 = time (01:02:03) $3 = command (MyCommand:) ?? = Here is some free form text from command Any ideas? Tom Munro Glass