Created
September 24, 2014 14:37
-
-
Save zot24/dd10fc5d0da873c243a8 to your computer and use it in GitHub Desktop.
Prepend line to file using sed on a Mac, this is only valid if the script already have some data in it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed -i '' -e $'1i\\\n Here is my new top line' file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment