I have a file with more than 8000 rows. File is divided into sections, each section is labeled with text like ##C, ##T,##N. I have to modify some rows in the file. I used command SED to mark lines between these markers. I am new to Bash, so I would appreciate some help. I have to modify text between those markers
##C
##A - beginning marker (must be next row after ##C)
text lines, some of them I have to modify
text lines, some of them I have to modify
##B -end marker
So far I have this command to mark lines between markers
sed -e '/##A/,/##B/{}' file.txt
Lines are formatted like this:
ZDMAD BELCH 0 0 25 26 30 50
My goal is to change some columns at specific lines. For example: When the first column is ZDMAD change 3rd column to 15.
I used this solved question for my furthest progress