How can I redirect the contents of a file to the pastebinit command? [duplicate]
- by Tim
This question already has an answer here:
How to submit a file to paste.ubuntu.com without graphical interface?
2 answers
Whenever I was to store something to show someone here, I run
command-with-output | pastebinit.
That returns the link to the paste online. For example:
echo timtjtim | pastebinit
gave me the link
paste.ubuntu.com/8010000
Which I can share. How can I do this with a file - for example a log file. Surely I don't have to open - > copy all - > open paste.ubuntu.com -> paste it?