There are several thousand entries like this going back years in my logs. I need to extract the LoadId Field, which might physically be in a different location because ADMIN could change, the TESTED field could change, etc. But, LoadId will always be-
LoadId(nnnn-n-n-1FAA-NNNNN-NNNNN)
Last two parts might vary.
What is the most efficient way to run through this with the korn shell. I am no expert in any of this. Usually, I'd dump this data into excel and do text to columns, but I need an automated way.
-o is a GNU Grep option, so it should work on Linux, or if you're using Solaris, you could try /usr/sfw/bin/ggrep (or /usr/xpg4/bin/grep (it's a while since I've used Solaris, so I don't remember which of those locations its in!)), but the sed will work regardless.