{
    "content": [
        {
            "type": "text",
            "text": "# wc (info)\n\n## Sections\n\n- **File: coreutils.info,  Node: wc invocation,  Next: sum invocation,  Up: Summarizing files** (1 subsections)\n- **Each count is printed right-justified in a field with at least one space**\n- **However, as a GNU extension, if only one count is printed, it is**\n- **Options do not undo others previously given, so**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "wc",
        "section": "",
        "mode": "info",
        "summary": null,
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "File: coreutils.info,  Node: wc invocation,  Next: sum invocation,  Up: Summarizing files",
                "lines": 1,
                "subsections": [
                    {
                        "name": "6.1 'wc': Print newline, word, and byte counts",
                        "lines": 11
                    }
                ]
            },
            {
                "name": "Each count is printed right-justified in a field with at least one space",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "However, as a GNU extension, if only one count is printed, it is",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "Options do not undo others previously given, so",
                "lines": 56,
                "subsections": []
            }
        ],
        "sections": {
            "File: coreutils.info,  Node: wc invocation,  Next: sum invocation,  Up: Summarizing files": {
                "content": "",
                "subsections": [
                    {
                        "name": "6.1 'wc': Print newline, word, and byte counts",
                        "content": "'wc' counts the number of bytes, characters, whitespace-separated words,\nand newlines in each given FILE, or standard input if none are given or\nfor a FILE of '-'.  Synopsis:\n\nwc [OPTION]... [FILE]...\n\n'wc' prints one line of counts for each file, and if the file was\ngiven as an argument, it prints the file name following the counts.  If\nmore than one FILE is given, 'wc' prints a final line containing the\ncumulative counts, with the file name 'total'.  The counts are printed\nin this order: newlines, words, characters, bytes, maximum line length."
                    }
                ]
            },
            "Each count is printed right-justified in a field with at least one space": {
                "content": "between fields so that the numbers and file names normally line up\nnicely in columns.  The width of the count fields varies depending on\nthe inputs, so you should not depend on a particular field width.",
                "subsections": []
            },
            "However, as a GNU extension, if only one count is printed, it is": {
                "content": "guaranteed to be printed without leading spaces.\n\nBy default, 'wc' prints three counts: the newline, words, and byte\ncounts.  Options can specify that only certain counts be printed.",
                "subsections": []
            },
            "Options do not undo others previously given, so": {
                "content": "wc --bytes --words\n\nprints both the byte counts and the word counts.\n\nWith the '--max-line-length' option, 'wc' prints the length of the\nlongest line per file, and if there is more than one file it prints the\nmaximum (not the sum) of those lengths.  The line lengths here are\nmeasured in screen columns, according to the current locale and assuming\ntab positions in every 8th column.\n\nThe program accepts the following options.  Also see *note Common\noptions::.\n\n'-c'\n'--bytes'\nPrint only the byte counts.\n\n'-m'\n'--chars'\nPrint only the character counts.\n\n'-w'\n'--words'\nPrint only the word counts.\n\n'-l'\n'--lines'\nPrint only the newline counts.\n\n'-L'\n'--max-line-length'\nPrint only the maximum display widths.  Tabs are set at every 8th\ncolumn.  Display widths of wide characters are considered.\nNon-printable characters are given 0 width.\n\n'--files0-from=FILE'\nDisallow processing files named on the command line, and instead\nprocess those named in file FILE; each name being terminated by a\nzero byte (ASCII NUL). This is useful when the list of file names\nis so long that it may exceed a command line length limitation.  In\nsuch cases, running 'wc' via 'xargs' is undesirable because it\nsplits the list into pieces and makes 'wc' print a total for each\nsublist rather than for the entire list.  One way to produce a list\nof ASCII NUL terminated file names is with GNU 'find', using its\n'-print0' predicate.  If FILE is '-' then the ASCII NUL terminated\nfile names are read from standard input.\n\nFor example, to find the length of the longest line in any '.c' or\n'.h' file in the current hierarchy, do this:\n\nfind . -name '*.[ch]' -print0 |\nwc -L --files0-from=- | tail -n1\n\nAn exit status of zero indicates success, and a nonzero value\nindicates failure.\n",
                "subsections": []
            }
        }
    }
}