zot24
9/24/2014 - 2:37 PM

Prepend line to file using sed on a Mac, this is only valid if the script already have some data in it

Prepend line to file using sed on a Mac, this is only valid if the script already have some data in it

sed -i '' -e $'1i\\\n Here is my new top line' file