Skip to content

Instantly share code, notes, and snippets.

@timpulver
Created November 29, 2012 00:09
Show Gist options
  • Save timpulver/4165743 to your computer and use it in GitHub Desktop.
Save timpulver/4165743 to your computer and use it in GitHub Desktop.
[Bash] Write text to file
echo "THIS IS STUFF FOR THE FILE" > index.html
the single > just overwrites anything in there.
echo "THIS IS STUFF FOR THE FILE" >> index.html
the dual >> appends the stuff at the end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment