Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Easy way to paste command line output to paste bin services?

Are there any command-line tools on Linux that allow you to post the output from commands or text files directly to a sharing service?
by

1 Answer

Kajalsi45d
I like the two command line tools that use curl
<command> | curl -F 'sprunge=<-'  //sprunge.us

<command> 2>&1 | curl -F 'f:1=<-' ix.io

You can make a simple function to save you having to remember the gory details, like so:
sprung() { curl -F "sprunge=<-" //sprunge.us <"$1" ;}

Login / Signup to Answer the Question.