---------- Post updated at 04:23 AM ---------- Previous update was at 04:21 AM ----------
So this works well for changing a single closing bracket to three closing brackets between 2 specified strings in a file:
sed -i test -e '/TOOLS-BEGIN/,/TOOLS-END/s/]/]]]/g'
I have a new issue once again. What I would like to do now is change the 5th occurrence of a single closing bracket to three closing brackets. Starting from for example SECTION2-END until lets say SECTION15-END. So the 5th bracket would be changed to ]]]