{
    "content": [
        {
            "type": "text",
            "text": "# expand (man)\n\n## NAME\n\nexpand - convert tabs to spaces\n\n## SYNOPSIS\n\nexpand [OPTION]... [FILE]...\n\n## DESCRIPTION\n\nConvert tabs in each FILE to spaces, writing to standard output.\n\n## TLDR\n\n> Convert tabs to spaces.\n\n- Convert tabs in each file to spaces, writing to `stdout`:\n  `expand {{path/to/file}}`\n- Convert tabs to spaces, reading from `stdin`:\n  `expand`\n- Do not convert tabs after non blanks:\n  `expand {{-i|--initial}} {{path/to/file}}`\n- Have tabs a certain number of characters apart, not 8:\n  `expand {{-t|--tabs}} {{number}} {{path/to/file}}`\n- Use a comma separated list of explicit tab positions:\n  `expand {{-t|--tabs}} {{1,4,6}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (4 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": "expand",
        "section": "",
        "mode": "man",
        "summary": "expand - convert tabs to spaces",
        "synopsis": "expand [OPTION]... [FILE]...",
        "tldr_summary": "Convert tabs to spaces.",
        "tldr_examples": [
            {
                "description": "Convert tabs in each file to spaces, writing to `stdout`",
                "command": "expand {{path/to/file}}"
            },
            {
                "description": "Convert tabs to spaces, reading from `stdin`",
                "command": "expand"
            },
            {
                "description": "Do not convert tabs after non blanks",
                "command": "expand {{-i|--initial}} {{path/to/file}}"
            },
            {
                "description": "Have tabs a certain number of characters apart, not 8",
                "command": "expand {{-t|--tabs}} {{number}} {{path/to/file}}"
            },
            {
                "description": "Use a comma separated list of explicit tab positions",
                "command": "expand {{-t|--tabs}} {{1,4,6}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-i",
                "long": "--initial",
                "arg": null,
                "description": "do not convert tabs after non blanks"
            },
            {
                "flag": "-t",
                "long": "--tabs",
                "arg": null,
                "description": "have tabs N characters apart, not 8"
            },
            {
                "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": "unexpand",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/unexpand/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": [
                    {
                        "name": "-i --initial",
                        "lines": 2,
                        "flag": "-i",
                        "long": "--initial"
                    },
                    {
                        "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": "expand - convert tabs to spaces\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "expand [OPTION]... [FILE]...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Convert tabs in each FILE to spaces, 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": "-i --initial",
                        "content": "do not convert tabs after non blanks\n",
                        "flag": "-i",
                        "long": "--initial"
                    },
                    {
                        "name": "-t --tabs",
                        "content": "have tabs N characters apart, not 8\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": "unexpand(1)\n\nFull documentation <https://www.gnu.org/software/coreutils/expand>\nor available locally via: info '(coreutils) expand invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                   EXPAND(1)",
                "subsections": []
            }
        }
    }
}