rupa / sprunge

command line pastebin for google appengine
http://sprunge.us
724 stars 70 forks source link

Fix Useless Use of Cat. #17

Closed benjaminweb closed 10 years ago

brycied00d commented 10 years ago

I agree that in that specific use case, it's superfluous. However I believe it serves a good illustration of piping the output from any other command, and as such should remain.

benjaminweb commented 10 years ago

I don't know whether the following relates to that: sprunge() { curl -F 'sprunge=<-' http://sprunge.us < "${1:-/dev/stdin}"; } # usage: sprunge FILE # or some_command | sprunge

(Borrowed from #bash on freenode.)

rupa commented 10 years ago

see #6