How to insert a line at the beginning of a file with sed?
11:20 23 Jan 2015

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

sed