# Smart sprunge alias/script. # # Contributed and SLIGHTLY modded by Matt Parnell/ilikenwf # Created by the blogger at the URL below...I don't know where to find his/her name # Original found at http://www.shellperson.net/sprunge-pastebin-script/ sprunge_usage() { cat << HERE DESCRIPTION Upload data and fetch URL from the pastebin http://sprunge.us In addition to printing the returned URL, if the xset or xsel programs are available (on $PATH), the URL will also be copied to the PRIMARY selection and the CLIPBOARD selection (allowing to quickly paste the url into IRC client for example). USAGE $0 filename.txt $0 < filename.txt piped_data | $0 INPUT METHODS $0 can accept piped data, STDIN redirection [