{
    "content": [
        {
            "type": "text",
            "text": "# logsave(8) (man)\n\n**Summary:** logsave - save the output of a command in a logfile\n\n**Synopsis:** logsave [ -asv ] logfile cmdprog [ ... ]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -a | — | — | current contents. |\n| -s | — | — | with a control-A (ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of Text). This allows progress bar inf |\n| -v | — | — |  |\n\n## See Also\n\n- fsck(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (11 lines)\n- **OPTIONS** (1 lines) — 3 subsections\n  - -a (2 lines)\n  - -s (4 lines)\n  - -v (1 lines)\n- **AUTHOR** (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nlogsave - save the output of a command in a logfile\n\n### SYNOPSIS\n\nlogsave [ -asv ] logfile cmdprog [ ... ]\n\n### DESCRIPTION\n\nThe  logsave program will execute cmdprog with the specified argument(s), and save a copy of\nits output to logfile.  If the containing directory for logfile does not exist, logsave  will\naccumulate  the output in memory until it can be written out.  A copy of the output will also\nbe written to standard output.\n\nIf cmdprog is a single hyphen ('-'), then instead of executing a program, logsave will  take\nits input from standard input and save it in logfile\n\nlogsave  is  useful for saving the output of initial boot scripts until the /var partition is\nmounted, so the output can be written to /var/log.\n\n### OPTIONS\n\n#### -a\n\ncurrent contents.\n\n#### -s\n\nwith a control-A (ASCII 001 or Start of Header) and control-B (ASCII 002 or  Start  of\nText).  This allows progress bar information to be visible to the user on the console,\nwhile not being written to the log file.\n\n#### -v\n\n### AUTHOR\n\nTheodore Ts'o (tytso@mit.edu)\n\n### SEE ALSO\n\nfsck(8)\n\n\n\nE2fsprogs version 1.46.5                    December 2021                                 LOGSAVE(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "logsave",
        "section": "8",
        "mode": "man",
        "summary": "logsave - save the output of a command in a logfile",
        "synopsis": "logsave [ -asv ] logfile cmdprog [ ... ]",
        "flags": [
            {
                "flag": "-a",
                "long": null,
                "arg": null,
                "description": "current contents."
            },
            {
                "flag": "-s",
                "long": null,
                "arg": null,
                "description": "with a control-A (ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of Text). This allows progress bar information to be visible to the user on the console, while not being written to the log file."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "fsck",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/fsck/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-a",
                        "lines": 2,
                        "flag": "-a"
                    },
                    {
                        "name": "-s",
                        "lines": 4,
                        "flag": "-s"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}