Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created September 6, 2014 06:34
Show Gist options
  • Save mcandre/ca732ebfdaee5a31bafe to your computer and use it in GitHub Desktop.
Save mcandre/ca732ebfdaee5a31bafe to your computer and use it in GitHub Desktop.

Mac OS X:

$ sed -i '' -e '$a\' <file>

*nix:

sed -i -e '$a\'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment