I have a huge file on my unix server from which I need to extract certain parts
The format of the line is
aNumber timestamp commandInformation
I use the command
grep LATENCY file.log | grep CMDTYPE=NEW
to filter out certain lines that I want. I only want the part timestamp and the last 9 characters from the line to be returned, not the complete line. How can I do that?