{
    "content": [
        {
            "type": "text",
            "text": "# printf(1) (man)\n\n**Summary:** printf - format and print data\n\n**Synopsis:** printf FORMAT [ARGUMENT]...\nprintf OPTION\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --version | — | output version information and exit FORMAT controls the output as in C printf. Interpreted sequences are: \\\" double quot |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (4 lines) — 1 subsections\n  - --version (50 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (8 lines)\n\n## Full Content\n\n### NAME\n\nprintf - format and print data\n\n### SYNOPSIS\n\nprintf FORMAT [ARGUMENT]...\nprintf OPTION\n\n### DESCRIPTION\n\nPrint ARGUMENT(s) according to FORMAT, or execute according to OPTION:\n\n--help display this help and exit\n\n#### --version\n\noutput version information and exit\n\nFORMAT controls the output as in C printf.  Interpreted sequences are:\n\n\\\"     double quote\n\n\\\\     backslash\n\n\\a     alert (BEL)\n\n\\b     backspace\n\n\\c     produce no further output\n\n\\e     escape\n\n\\f     form feed\n\n\\n     new line\n\n\\r     carriage return\n\n\\t     horizontal tab\n\n\\v     vertical tab\n\n\\NNN   byte with octal value NNN (1 to 3 digits)\n\n\\xHH   byte with hexadecimal value HH (1 to 2 digits)\n\n\\uHHHH Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits)\n\n\\UHHHHHHHH\nUnicode character with hex value HHHHHHHH (8 digits)\n\n%%     a single %\n\n%b     ARGUMENT  as  a  string with '\\' escapes interpreted, except that octal escapes are of\nthe form \\0 or \\0NNN\n\n%q     ARGUMENT is printed in a format that can be reused as shell input, escaping non-print‐\nable characters with the proposed POSIX $'' syntax.\n\nand all C format specifications ending with one of diouxXfeEgGcs, with ARGUMENTs converted to\nproper type first.  Variable widths are handled.\n\nNOTE: your shell may have its own version of printf, which usually supersedes the version de‐\nscribed  here.   Please  refer to your shell's documentation for details about the options it\nsupports.\n\n### AUTHOR\n\nWritten by David MacKenzie.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright © 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\n### SEE ALSO\n\nprintf(3)\n\nFull documentation <https://www.gnu.org/software/coreutils/printf>\nor available locally via: info '(coreutils) printf invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                   PRINTF(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "printf",
        "section": "1",
        "mode": "man",
        "summary": "printf - format and print data",
        "synopsis": "printf FORMAT [ARGUMENT]...\nprintf OPTION",
        "flags": [
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit FORMAT controls the output as in C printf. Interpreted sequences are: \\\" double quote \\\\ backslash \\a alert (BEL) \\b backspace \\c produce no further output \\e escape \\f form feed \\n new line \\r carriage return \\t horizontal tab \\v vertical tab \\NNN byte with octal value NNN (1 to 3 digits) \\xHH byte with hexadecimal value HH (1 to 2 digits) \\uHHHH Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits) \\UHHHHHHHH Unicode character with hex value HHHHHHHH (8 digits) %% a single % %b ARGUMENT as a string with '\\' escapes interpreted, except that octal escapes are of the form \\0 or \\0NNN %q ARGUMENT is printed in a format that can be reused as shell input, escaping non-print‐ able characters with the proposed POSIX $'' syntax. and all C format specifications ending with one of diouxXfeEgGcs, with ARGUMENTs converted to proper type first. Variable widths are handled. NOTE: your shell may have its own version of printf, which usually supersedes the version de‐ scribed here. Please refer to your shell's documentation for details about the options it supports."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": [
                    {
                        "name": "--version",
                        "lines": 50,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 8,
                "subsections": []
            }
        ]
    }
}