How to insert a line at the beginning of a file with sed?
Im trying to insert a line containing these characters: ~o to the beginning of a file. Im using: sed -i '' "1s/^/~o \n/" macros But the newline option just doesn't do its job. How should I change it ? Thank you