Sed’s append command (a) is for some reason deleting all file’s text and then appending the provided text
I’m trying with GNU/sed command to append a line into a file inside a block/section, specifically just under the start of the block/section. As a result it empties the file (maybe leaves a linebreak) and then appends the line in question.
Sed append command (a) is for some reason deleting all file’s text and then appending the provided line
I’m trying with GNU/sed command to append a line into a file inside a block/section, specifically just under the start of the block/section. As a result it empties the file (maybe leaves a linebreak) and then appends the line in question.