{
    "content": [
        {
            "type": "text",
            "text": "# pbputs (man)\n\n## NAME\n\npbput - compress and encode arbitrary files to pastebin.com  pbputs - compress, encrypt, encode arbitrary files to pastebin.com  pbget - decode and decompress arbitrary files from pastebin.com\n\n## SYNOPSIS\n\npbput [FILENAME]\ncat foo | pbput\npbputs [FILENAME] [GPGUSER]\ncat foo | pbputs [GPGUSER]\npbget URL [DIRECTORY]\n\n## DESCRIPTION\n\npbput is a program that can upload text files, binary files or entire directory structures to\na pastebin, such as pastebin.com.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXAMPLES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pbputs",
        "section": "",
        "mode": "man",
        "summary": "pbput - compress and encode arbitrary files to pastebin.com  pbputs - compress, encrypt, encode arbitrary files to pastebin.com  pbget - decode and decompress arbitrary files from pastebin.com",
        "synopsis": "pbput [FILENAME]\ncat foo | pbput\npbputs [FILENAME] [GPGUSER]\ncat foo | pbputs [GPGUSER]\npbget URL [DIRECTORY]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "$ pbput /sbin/init",
            "http://pastebin.com/BstNzasK",
            "$ pbget http://pastebin.com/BstNzasK",
            "sbin/init",
            "INFO: Output is in [/tmp/pbget.bG67DwY6Zl]",
            "$ cat /etc/lsb-release | pbput",
            "http://pastebin.com/p43gJv6Z",
            "$ pbget http://pastebin.com/p43gJv6Z",
            "DISTRIBID=Ubuntu",
            "DISTRIBRELEASE=11.04",
            "DISTRIBCODENAME=natty",
            "DISTRIBDESCRIPTION=\"Ubuntu 11.04\"",
            "$ pbputs /etc/shadow",
            "Enter passphrase:",
            "http://pastebin.com/t2ZaCYr3",
            "$ pbget http://pastebin.com/t2ZaCYr3",
            "Enter passphrase:",
            "root:09cc6d2d9d63371a425076e217f77698:15096:0:99999:7:::",
            "daemon:*:15089:0:99999:7:::",
            "bin:*:15089:0:99999:7:::",
            "sys:*:15089:0:99999:7:::",
            "...."
        ],
        "see_also": [
            {
                "name": "pastebinit",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pastebinit/1/json"
            },
            {
                "name": "lzma",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/lzma/1/json"
            },
            {
                "name": "base64",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/base64/1/json"
            },
            {
                "name": "tar",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/tar/1/json"
            },
            {
                "name": "gpg",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/gpg/1/json"
            },
            {
                "name": "mktemp",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/mktemp/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 26,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 26,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 11,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pbput - compress and encode arbitrary files to pastebin.com\n\npbputs - compress, encrypt, encode arbitrary files to pastebin.com\n\npbget - decode and decompress arbitrary files from pastebin.com\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pbput [FILENAME]\n\ncat foo | pbput\n\npbputs [FILENAME] [GPGUSER]\n\ncat foo | pbputs [GPGUSER]\n\npbget URL [DIRECTORY]\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "pbput is a program that can upload text files, binary files or entire directory structures to\na pastebin, such as pastebin.com.\n\npbget is a program that be used to retrieve content uploaded to a pastebin by pbput.\n\npbputs operates exactly like pbput, except it encrypts the data.  An optional GPGUSER  argu‐\nment  is  allowed,  which  will sign and encrypt the data to the target user in one's keyring\n(which could be oneself!).  Otherwise, the user is prompted for a  symmetric  passphrase  for\nencrypting the content with gpg(1) before uploading.  pbget will automatically prompt the re‐\nceiving user for the pre-shared passphrase.\n\npbput and pbputs can take its input either on STDIN, or as a FILENAME argument.\n- If STDIN is used, then the receiving user's pbget will simply paste the input on STDOUT.\n- If a FILENAME or DIRECTORY is passed as an argument, then  it  is  first  archived  using\ntar(1) to preserve the file and directory attributes\n\npbget  takes  a  URL as its first, mandatory argument.  Optionally, it takes a DIRECTORY as a\nsecond parameter.  If the incoming data is in fact a file or file structure in a  tar(1)  ar‐\nchive, then that data will be extracted in the specified DIRECTORY.  If no DIRECTORY is spec‐\nified, then a temporary directory is created using mktemp(1).\n\nIn any case the uploaded/downloaded data is optionally tar(1) archived, always  lzma(1)  com‐\npressed,  optionally  gpg(1) encrypted, and always base64(1) encoded.  http://pastebin.com is\nused by default.\n\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "$ pbput /sbin/init\nhttp://pastebin.com/BstNzasK\n$ pbget http://pastebin.com/BstNzasK\nsbin/init\nINFO: Output is in [/tmp/pbget.bG67DwY6Zl]\n\n$ cat /etc/lsb-release | pbput\nhttp://pastebin.com/p43gJv6Z\n$ pbget http://pastebin.com/p43gJv6Z\nDISTRIBID=Ubuntu\nDISTRIBRELEASE=11.04\nDISTRIBCODENAME=natty\nDISTRIBDESCRIPTION=\"Ubuntu 11.04\"\n\n$ pbputs /etc/shadow\nEnter passphrase:\nhttp://pastebin.com/t2ZaCYr3\n$ pbget http://pastebin.com/t2ZaCYr3\nEnter passphrase:\nroot:09cc6d2d9d63371a425076e217f77698:15096:0:99999:7:::\ndaemon:*:15089:0:99999:7:::\nbin:*:15089:0:99999:7:::\nsys:*:15089:0:99999:7:::\n....\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pastebinit(1), lzma(1), base64(1), tar(1), gpg(1), mktemp(1)\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "This manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for  Ubuntu\nsystems (but may be used by others).  Permission is granted to copy, distribute and/or modify\nthis document under the terms of the GNU General Public License, Version 2 or later published\nby the Free Software Foundation.\n\nOn  Debian  systems,  the  complete  text  of  the GNU General Public License can be found in\n/usr/share/common-licenses/GPL, or on the web at http://www.gnu.org/licenses/gpl.txt.\n\n\n\nbikeshed                                     6 Oct 2010                                     pbput(1)",
                "subsections": []
            }
        }
    }
}