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
Was it useful? Share this post with the world!

3 Replies to “Sharing the Output of a Command with Sprunge”

  1. Thank you for this post. Admittedly, I struggled with uploading a configuration file to sprunge. After recieving a number of error messages at the command line, I looked for another temporary storage site, where I succeeded in uploading the config file. The problem with that site is that in order to see the uploaded file, you have to click a “Download” button. Someone who may want to help debug my config file may not be comfortable with downloading it.

    I did get help with my config file and my problem is fixed. Later, I came back to your page, re-read your instructions and succeeded in uploading to sprunge. Clean and simple. I will use sprunge again.

    1. You are welcome.

  2. thanks- this is a great way of pasting into my qemu 9front vm

Leave a Reply