{
    "mode": "man",
    "parameter": "CUT",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/CUT/1/json",
    "generated": "2026-05-30T06:05:13Z",
    "synopsis": "cut OPTION... [FILE]...",
    "sections": {
        "NAME": {
            "content": "cut - remove sections from each line of files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "cut OPTION... [FILE]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print selected parts of lines from each FILE 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": "-b --bytes",
                    "content": "select only these bytes\n",
                    "flag": "-b",
                    "long": "--bytes"
                },
                {
                    "name": "-c --characters",
                    "content": "select only these characters\n",
                    "flag": "-c",
                    "long": "--characters"
                },
                {
                    "name": "-d --delimiter",
                    "content": "use DELIM instead of TAB for field delimiter\n",
                    "flag": "-d",
                    "long": "--delimiter"
                },
                {
                    "name": "-f --fields",
                    "content": "select  only  these fields;  also print any line that contains no delimiter character,\nunless the -s option is specified\n",
                    "flag": "-f",
                    "long": "--fields"
                },
                {
                    "name": "-n     (ignored)",
                    "content": "",
                    "flag": "-n"
                },
                {
                    "name": "--complement",
                    "content": "complement the set of selected bytes, characters or fields\n",
                    "long": "--complement"
                },
                {
                    "name": "-s --only-delimited",
                    "content": "do not print lines not containing delimiters\n\n--output-delimiter=STRING\nuse STRING as the output delimiter the default is to use the input delimiter\n",
                    "flag": "-s",
                    "long": "--only-delimited"
                },
                {
                    "name": "-z --zero-terminated",
                    "content": "line delimiter is NUL, not newline\n\n--help display this help and exit\n",
                    "flag": "-z",
                    "long": "--zero-terminated"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n\nUse one, and only one of -b, -c or -f.  Each LIST is made up of one  range,  or  many  ranges\nseparated  by  commas.   Selected  input is written in the same order that it is read, and is\nwritten exactly once.  Each range is one of:\n\nN      N'th byte, character or field, counted from 1\n\nN-     from N'th byte, character or field, to end of line\n\nN-M    from N'th to M'th (included) byte, character or field\n",
                    "long": "--version"
                },
                {
                    "name": "-M",
                    "content": "",
                    "flag": "-M"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by David M. Ihnat, David MacKenzie, and Jim Meyering.\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": "Full documentation <https://www.gnu.org/software/coreutils/cut>\nor available locally via: info '(coreutils) cut invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                      CUT(1)",
            "subsections": []
        }
    },
    "summary": "cut - remove sections from each line of files",
    "flags": [
        {
            "flag": "-b",
            "long": "--bytes",
            "arg": null,
            "description": "select only these bytes"
        },
        {
            "flag": "-c",
            "long": "--characters",
            "arg": null,
            "description": "select only these characters"
        },
        {
            "flag": "-d",
            "long": "--delimiter",
            "arg": null,
            "description": "use DELIM instead of TAB for field delimiter"
        },
        {
            "flag": "-f",
            "long": "--fields",
            "arg": null,
            "description": "select only these fields; also print any line that contains no delimiter character, unless the -s option is specified"
        },
        {
            "flag": "-n",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--complement",
            "arg": null,
            "description": "complement the set of selected bytes, characters or fields"
        },
        {
            "flag": "-s",
            "long": "--only-delimited",
            "arg": null,
            "description": "do not print lines not containing delimiters --output-delimiter=STRING use STRING as the output delimiter the default is to use the input delimiter"
        },
        {
            "flag": "-z",
            "long": "--zero-terminated",
            "arg": null,
            "description": "line delimiter is NUL, not newline --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit Use one, and only one of -b, -c or -f. Each LIST is made up of one range, or many ranges separated by commas. Selected input is written in the same order that it is read, and is written exactly once. Each range is one of: N N'th byte, character or field, counted from 1 N- from N'th byte, character or field, to end of line N-M from N'th to M'th (included) byte, character or field"
        },
        {
            "flag": "-M",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": []
}