Skip to content

Instantly share code, notes, and snippets.

@feitang0
Created November 19, 2015 08:59
Show Gist options
  • Save feitang0/e6d1644b566bd00ba661 to your computer and use it in GitHub Desktop.
Save feitang0/e6d1644b566bd00ba661 to your computer and use it in GitHub Desktop.
Linux trick
# add lines to the beginning of file
sed -i '1s/^/<added text>\n/' file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment