Pastebin command line client

Pastebin Command Line Shell Script.

A shell script for pasting to pastebin.co.uk from the command line
Download shell script and follow the install instructions below.

Usage:
pastebin < foobar.php
or
ls | pastebin --format=text --quiet

This script will send everything you give it on the standard input
to pastebin.co.uk. By default it will ask the user for confirmation
before sending anything -- this can be turned off by using the
"--quiet" switch. Using this switch may be necessary for some
terminals. Use "--format=something" to tell pastebin.co.uk how the
text should be formatted. Default is PHP code. Currently availiable
values can be seen here: https://pastebin.co.uk/a/syntax_highlight_formats
The URL for the new pastebin.co.uk entry should be printed on the
standard output afterwards.

Installation:
It depends on netcat/telnet, perl and dialog installed on your system.
Copy this file to somewhere in your $PATH like
/usr/local/bin/pastebin
and make executable by type:
chmod +x /usr/local/bin/pastebin

 

Comments: 1

by: Anonymous Cowardon: Mon Feb 19 00:27:46 2007

nice