{
    "content": [
        {
            "type": "text",
            "text": "# echo (man)\n\n## NAME\n\necho - display a line of text\n\n## SYNOPSIS\n\necho [SHORT-OPTION]... [STRING]...\necho LONG-OPTION\n\n## DESCRIPTION\n\nEcho the STRING(s) to standard output.\n\n## TLDR\n\n> Print given arguments.\n\n- Print a text message. Note: Quotes are optional:\n  `echo \"{{Hello World}}\"`\n- Print a message with environment variables:\n  `echo \"{{My path is $PATH}}\"`\n- Print a message without the trailing newline:\n  `echo -n \"{{Hello World}}\"`\n- Append a message to the file:\n  `echo \"{{Hello World}}\" >> {{file.txt}}`\n- Enable interpretation of backslash escapes (special characters):\n  `echo -e \"{{Column 1\\tColumn 2}}\"`\n- Print the exit status of the last executed command (Note: In Windows Command Prompt and PowerShell the equivalent commands are `echo %errorlevel%` and `$lastexitcode` respectively):\n  `echo $?`\n- Pass text to another program through `stdin`:\n  `echo \"{{Hello World}}\" | {{program}}`\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": "echo",
        "section": "",
        "mode": "man",
        "summary": "echo - display a line of text",
        "synopsis": "echo [SHORT-OPTION]... [STRING]...\necho LONG-OPTION",
        "tldr_summary": "Print given arguments.",
        "tldr_examples": [
            {
                "description": "Print a text message. Note: Quotes are optional",
                "command": "echo \"{{Hello World}}\""
            },
            {
                "description": "Print a message with environment variables",
                "command": "echo \"{{My path is $PATH}}\""
            },
            {
                "description": "Print a message without the trailing newline",
                "command": "echo -n \"{{Hello World}}\""
            },
            {
                "description": "Append a message to the file",
                "command": "echo \"{{Hello World}}\" >> {{file.txt}}"
            },
            {
                "description": "Enable interpretation of backslash escapes (special characters)",
                "command": "echo -e \"{{Column 1\\tColumn 2}}\""
            },
            {
                "description": "Print the exit status of the last executed command (Note: In Windows Command Prompt and PowerShell the equivalent commands are `echo %errorlevel%` and `$lastexitcode` respectively)",
                "command": "echo $?"
            },
            {
                "description": "Pass text to another program through `stdin`",
                "command": "echo \"{{Hello World}}\" | {{program}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-n",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-e",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-E",
                "long": null,
                "arg": null,
                "description": "--help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit If -e is in effect, the following sequences are recognized: \\\\ 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 \\0NNN byte with octal value NNN (1 to 3 digits) \\xHH byte with hexadecimal value HH (1 to 2 digits) NOTE: your shell may have its own version of echo, 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": 2,
                "subsections": [
                    {
                        "name": "-n",
                        "lines": 1,
                        "flag": "-n"
                    },
                    {
                        "name": "-e",
                        "lines": 1,
                        "flag": "-e"
                    },
                    {
                        "name": "-E",
                        "lines": 2,
                        "flag": "-E"
                    },
                    {
                        "name": "--version",
                        "lines": 32,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "echo - display a line of text\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "echo [SHORT-OPTION]... [STRING]...\necho LONG-OPTION\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Echo the STRING(s) to standard output.\n",
                "subsections": [
                    {
                        "name": "-n",
                        "content": "",
                        "flag": "-n"
                    },
                    {
                        "name": "-e",
                        "content": "",
                        "flag": "-e"
                    },
                    {
                        "name": "-E",
                        "content": "--help display this help and exit\n",
                        "flag": "-E"
                    },
                    {
                        "name": "--version",
                        "content": "output version information and exit\n\nIf -e is in effect, the following sequences are recognized:\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\\0NNN  byte with octal value NNN (1 to 3 digits)\n\n\\xHH   byte with hexadecimal value HH (1 to 2 digits)\n\nNOTE:  your  shell may have its own version of echo, which usually supersedes the version de‐\nscribed here.  Please refer to your shell's documentation for details about  the  options  it\nsupports.\n",
                        "long": "--version"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Written by Brian Fox and Chet Ramey.\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/echo>\nor available locally via: info '(coreutils) echo invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                     ECHO(1)",
                "subsections": []
            }
        }
    }
}