1
0
mirror of https://tildegit.org/tomasino/pb.git synced 2024-12-23 11:35:09 +01:00
tomasino-pb/pb.1

76 lines
1.5 KiB
Groff
Raw Normal View History

.TH PB 1 "20 January 2020" "v2020.01.20"
2018-10-10 02:32:36 +02:00
.SH NAME
pb \- a helper utility for using 0x0 pastebin services
2018-10-10 02:32:36 +02:00
.SH SYNOPSIS
2018-10-10 02:44:27 +02:00
.B pb
[-fucvh] [-s server_endpoint]
.P
2018-10-10 02:32:36 +02:00
.SH DESRIPTION
.B pb
provides an easy-to-use interface for uploading images
or piping output to a 0x0 pastebin service. While it
comes pre-configured with a specific pastebin, the
service endpoint can be overridden.
2018-10-10 02:32:36 +02:00
Data input can be provided as an argument or via stdin.
The data will be processed as an image, text or URL to
be shortened based on the context.
The options are as follows:
.TP
.B -f
2018-10-10 02:32:36 +02:00
Explicitly interpret stdin as filename or names.
.TP
2018-10-10 02:40:54 +02:00
.BI -s " server_address"
2018-10-10 02:32:36 +02:00
Use alternative pastebin server address.
.TP
2018-10-10 02:21:18 +02:00
.B -u
2018-10-10 02:32:36 +02:00
Shorten a URL.
2018-10-10 02:21:18 +02:00
.TP
.B -c
2018-10-10 02:32:36 +02:00
Pretty color output.
.TP
.B -v
Display current version information.
.TP
.B -h
Show the help.
2018-10-10 02:32:36 +02:00
2018-10-10 02:40:54 +02:00
.SH EXIT STATUS
The
.B pb
utility exits 0 on success, and >0 if an error occurs.
2018-10-10 02:32:36 +02:00
.SH EXAMPLES
.TP
.B pb scores.txt
Upload 'scores.txt' to the pastebin
.TP
.B echo 'Secret info' | pb
Upload piped output to the pastebin
.TP
.B find . -type f -name '*.js' -print | pb -f
Upload a list of files to the pastebin individually
.B pb -s http://0x0.st scores.txt
Upload a file to a different pastebin endpoint
.TP
.B pb -u 'https://tilde.team'
Shorten the URL to tilde.team
.SH BUGS
2018-10-10 02:32:36 +02:00
Report issues at the git repository at
.B https://tildegit.org/tomasino/pb
2018-10-10 02:40:54 +02:00
.SH STANDARDS
The
.B pb
utility is compliant with the IEEE Std 1003.1-2008 ("POSIX.1")
specification.
.SH AUTHOR
James Tomasino <tomasino (at) lavabit (dot) com>