Sharing the Output of a Command with Sprunge

When I quickly need to post the output of a command, or to share some text file, I use the service.

It is a Free command line pastebin, dedicated to the aliens seen in Futurama, which have an organ called the "sprunger" that is used for sniffing out information.

To share a file, just do :
$ cat FILE | curl -F 'sprunge=<-'
and sprunge will send you back a URL like, that you could share.

Append the symbol "?" followed by the language your file is written in to that URL, and you’ll get line numbering and syntax highlighting :

Here is the list of available programming language.

To pipe the output of any command execute :
$ COMMAND | curl -F 'sprunge=<-'

You can create a bash shell function as follows (add to your ~/.bashrc) :

# Share the output of a command
sprunge() {
curl -F 'sprunge=<-'

Reload .bashrc file.
$ . ~/.bashrc

Now use sprunge to share any text file or the output of any command :
$ COMMAND | sprunge
$ cat FILE | sprunge