This simple problem is driving me mad. Hopefully someone can point out what the problem is...
This is my sed script which I'm trying to run using
But I get:-
Bash:
sed '/^.wget/a\
abc' prereq-build.mk
sed -f sed.scr
with the idea of adding a line containing abc after searching a file which contains a line starting with wget. Sounds simple enough....But I get:-
Can anyone explain the problem, or even correct it?sed: 2: sed.scr: bad flag in substitute command: 'r'