Skip to content

Instantly share code, notes, and snippets.

@ghedo
Created Mar 11, 2012
Embed
What would you like to do?
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