in awk you can use the function substr to get char3-5 or similar, so looks pretty easy to check.
conversion and replacement also easy, you need to split your line into 5 pieces: before 3, 3-5, 6-137, 138-140, 141- and construct the result by concatenating required parts.
|