Skip to content

Instantly share code, notes, and snippets.

@ghedo
Created March 11, 2012 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghedo/2016999 to your computer and use it in GitHub Desktop.
Save ghedo/2016999 to your computer and use it in GitHub Desktop.
Paste stuff to sprunge.us
#!/bin/sh -e
# Usage: sprunge < <file>
# Paste stuff to sprunge.us
if [ -t 0 ]; then
echo "Usage: sprunge < some_file.txt"
else
curl -sF 'sprunge=<-' http://sprunge.us < /dev/stdin
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment