Hi,
I need a script that will subtract 1 from the third column of the line beginning with %, leaving all other values the same. So 158 should be 157, 308 should be 307, 458 should be 457.
Before:
# 30109 xyz abc Data
% 30109 158 5 8 2
000023f
01f4145
# 30109 xyz abc Data
% 30109 308 5 8 2
003a300
01f4145
# 30109 xyz abc Data
% 30109 458 5 8 2
39c3b92
01f4145
After:
Before:
# 30109 xyz abc Data
% 30109 157 5 8 2
000023f
01f4145
# 30109 xyz abc Data
% 30109 307 5 8 2
003a300
01f4145
# 30109 xyz abc Data
% 30109 457 5 8 2
39c3b92
01f4145
Thanks for your help,
morrbie