Would using awk's substr in this manner be feasible? I am trying to replace characters 35-42 with zeroes for every record in a file.
runid = substr($0,35,8)
zeroed ="00000000"
runid=zeroed
I have a file with multiple records:
0287C04200302201511330000000133986589898989 160180 00000001xxxx_xxxx_020_xxxxx.dat
I need to change characters 35-42 to zeros. Is there a substitution command to do this with awk or sed?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.