I can't get this to work:-
' EOF' is added as a separate line instead of being added to the last line....
https://devicetests.com/append-line-using-sed suggests it should work, so maybe BSD sed() works differently...
Any suggestions?
sed '$s/$/ EOF/' somefile
' EOF' is added as a separate line instead of being added to the last line....
https://devicetests.com/append-line-using-sed suggests it should work, so maybe BSD sed() works differently...
Any suggestions?