{
    "content": [
        {
            "type": "text",
            "text": "# UNEXPAND (man)\n\n## NAME\n\nunexpand - convert spaces to tabs\n\n## SYNOPSIS\n\nunexpand [OPTION]... [FILE]...\n\n## DESCRIPTION\n\nConvert blanks in each FILE to tabs, writing to standard output.\n\n## TLDR\n\n> Convert spaces to tabs.\n\n- Convert blanks in each file to tabs, writing to `stdout`:\n  `unexpand {{path/to/file}}`\n- Convert blanks to tabs, reading from `stdout`:\n  `unexpand`\n- Convert all blanks, instead of just initial blanks:\n  `unexpand {{-a|--all}} {{path/to/file}}`\n- Convert only leading sequences of blanks (overrides -a):\n  `unexpand --first-only {{path/to/file}}`\n- Have tabs a certain number of characters apart, not 8 (enables -a):\n  `unexpand {{-t|--tabs}} {{number}} {{path/to/file}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (5 subsections)\n- **AUTHOR**\n- **REPORTING BUGS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "UNEXPAND",
        "section": "",
        "mode": "man",
        "summary": "unexpand - convert spaces to tabs",
        "synopsis": "unexpand [OPTION]... [FILE]...",
        "tldr_summary": "Convert spaces to tabs.",
        "tldr_examples": [
            {
                "description": "Convert blanks in each file to tabs, writing to `stdout`",
                "command": "unexpand {{path/to/file}}"
            },
            {
                "description": "Convert blanks to tabs, reading from `stdout`",
                "command": "unexpand"
            },
            {
                "description": "Convert all blanks, instead of just initial blanks",
                "command": "unexpand {{-a|--all}} {{path/to/file}}"
            },
            {
                "description": "Convert only leading sequences of blanks (overrides -a)",
                "command": "unexpand --first-only {{path/to/file}}"
            },
            {
                "description": "Have tabs a certain number of characters apart, not 8 (enables -a)",
                "command": "unexpand {{-t|--tabs}} {{number}} {{path/to/file}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-a",
                "long": "--all",
                "arg": null,
                "description": "convert all blanks, instead of just initial blanks"
            },
            {
                "flag": "",
                "long": "--first-only",
                "arg": null,
                "description": "convert only leading sequences of blanks (overrides -a)"
            },
            {
                "flag": "-t",
                "long": "--tabs",
                "arg": null,
                "description": "have tabs N characters apart instead of 8 (enables -a)"
            },
            {
                "flag": "-t",
                "long": "--tabs",
                "arg": null,
                "description": "use comma separated list of tab positions The last specified position can be prefixed with '/' to specify a tab size to use after the last explicitly specified tab stop. Also a prefix of '+' can be used to align remaining tab stops relative to the last specified tab stop instead of the first column --help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit"
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "expand",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/expand/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": [
                    {
                        "name": "-a --all",
                        "lines": 2,
                        "flag": "-a",
                        "long": "--all"
                    },
                    {
                        "name": "--first-only",
                        "lines": 2,
                        "long": "--first-only"
                    },
                    {
                        "name": "-t --tabs",
                        "lines": 2,
                        "flag": "-t",
                        "long": "--tabs"
                    },
                    {
                        "name": "-t --tabs",
                        "lines": 7,
                        "flag": "-t",
                        "long": "--tabs"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 8,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "unexpand - convert spaces to tabs\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "unexpand [OPTION]... [FILE]...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Convert blanks in each FILE to tabs, writing to standard output.\n\nWith no FILE, or when FILE is -, read standard input.\n\nMandatory arguments to long options are mandatory for short options too.\n",
                "subsections": [
                    {
                        "name": "-a --all",
                        "content": "convert all blanks, instead of just initial blanks\n",
                        "flag": "-a",
                        "long": "--all"
                    },
                    {
                        "name": "--first-only",
                        "content": "convert only leading sequences of blanks (overrides -a)\n",
                        "long": "--first-only"
                    },
                    {
                        "name": "-t --tabs",
                        "content": "have tabs N characters apart instead of 8 (enables -a)\n",
                        "flag": "-t",
                        "long": "--tabs"
                    },
                    {
                        "name": "-t --tabs",
                        "content": "use  comma separated list of tab positions The last specified position can be prefixed\nwith '/' to specify a tab size to use after the last explicitly  specified  tab  stop.\nAlso  a  prefix  of  '+' can be used to align remaining tab stops relative to the last\nspecified tab stop instead of the first column\n\n--help display this help and exit\n",
                        "flag": "-t",
                        "long": "--tabs"
                    },
                    {
                        "name": "--version",
                        "content": "output version information and exit\n",
                        "long": "--version"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Written by David MacKenzie.\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright © 2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3  or  later\n<https://gnu.org/licenses/gpl.html>.\nThis  is free software: you are free to change and redistribute it.  There is NO WARRANTY, to\nthe extent permitted by law.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "expand(1)\n\nFull documentation <https://www.gnu.org/software/coreutils/unexpand>\nor available locally via: info '(coreutils) unexpand invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                 UNEXPAND(1)",
                "subsections": []
            }
        }
    }
}