how to replace the 3rd colum? Each line begins similarly, but they all ends variously.
XX YY 03 variable text here
XX YY 03 more variable text here
XX YY 03 even more variable text here really long setence
XX YY 03 variable numbers also appear 03 11. 123 456
XX YY 03 the occasional comma, and period. are in here also
anyway, I want the above text file to look like this:
XX YY 01 variable text here
XX YY 01 more variable text here
XX YY 01 even more variable text here really long setence
XX YY 01 variable numbers also 03 11. 123 456
XX YY 01 the occasional comma, and period. are in here also
The X's and Y's are ALWAYS random two-digit numbers, the 3rd colum is always 03, but sometimes 03 is found elsewhere in the line. So the only thing I want changed is the 3rd column from 03 to 01. (as seen above)
Any ideas? I searched and found extensive sed/awk tricks..but this (I think) is simpler.