{
    "content": [
        {
            "type": "text",
            "text": "# dpkg-awk(1) (man)\n\n**Summary:** dpkg-awk - Utility to read a dpkg style db file\n\n**Synopsis:** dpkg-awk  [(-f|--file)  filename]  [(-d|--debug)  ##] [(-s|--sort) list] [(-rs|--recsep) ??]\n'<fieldname>:<regex>' ... -- <outfieldname> ..\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (4 lines)\n- **OPTIONS** (32 lines)\n- **BUGS** (10 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\ndpkg-awk - Utility to read a dpkg style db file\n\n### SYNOPSIS\n\ndpkg-awk  [(-f|--file)  filename]  [(-d|--debug)  ##] [(-s|--sort) list] [(-rs|--recsep) ??]\n'<fieldname>:<regex>' ... -- <outfieldname> ..\n\n### DESCRIPTION\n\ndpkg-awk Parses a dpkg status file (or other similarly formatted file) and  outputs  the  re‐\nsulting  records.  It can use regex on the field values to limit the returned records, it can\nalso be told which fields to output, and it can sort the matched fields.\n\n### OPTIONS\n\n-f filename\n--file filename\nThe file to parse.  The default is /var/lib/dpkg/status.\n\n-d [#]\n--debug [#]\nEach time this is specified, it increased the debug level.\n\n-s field(s)\n--sort field(s)\nA space or comma separated list of fields to sort on.\n\n-n field(s)\n--numeric field(s)\nA space or comma separated list of fields that should be  interpreted  as  numeric  in\nvalue.\n\n-rs ??\n--recsep ??\nOutput this string at the end of each output paragraph.\n\n-h\n--help Display some help.\n\nfieldname\nThe  fields  from the file, that are matched with the regex given.  The fieldnames are\ncase insensitive.\n\noutfieldname\nThe fields from the file, that are output for each record.  If the first field  listed\nbegins with ^, then the list of fields that follows will NOT be output.\n\n### BUGS\n\nBe  warned  that the author has only a shallow understanding of the dpkg packaging system, so\nthere are probably tons of bugs in this program.\n\nThis program comes with no warranties.  If running this program causes fire and brimstone  to\nrain down upon the earth, you will be on your own.\n\nThis  program accesses the dpkg database directly in places, querying for data that cannot be\ngotten via dpkg.\n\n### AUTHOR\n\nAdam Heath <doogie@debian.org>\n\n\n\nDEBIAN                                    Debian Utilities                               DPKG-AWK(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "dpkg-awk",
        "section": "1",
        "mode": "man",
        "summary": "dpkg-awk - Utility to read a dpkg style db file",
        "synopsis": "dpkg-awk  [(-f|--file)  filename]  [(-d|--debug)  ##] [(-s|--sort) list] [(-rs|--recsep) ??]\n'<fieldname>:<regex>' ... -- <outfieldname> ..",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 32,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "dpkg-awk - Utility to read a dpkg style db file\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "dpkg-awk  [(-f|--file)  filename]  [(-d|--debug)  ##] [(-s|--sort) list] [(-rs|--recsep) ??]\n'<fieldname>:<regex>' ... -- <outfieldname> ..\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "dpkg-awk Parses a dpkg status file (or other similarly formatted file) and  outputs  the  re‐\nsulting  records.  It can use regex on the field values to limit the returned records, it can\nalso be told which fields to output, and it can sort the matched fields.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "-f filename\n--file filename\nThe file to parse.  The default is /var/lib/dpkg/status.\n\n-d [#]\n--debug [#]\nEach time this is specified, it increased the debug level.\n\n-s field(s)\n--sort field(s)\nA space or comma separated list of fields to sort on.\n\n-n field(s)\n--numeric field(s)\nA space or comma separated list of fields that should be  interpreted  as  numeric  in\nvalue.\n\n-rs ??\n--recsep ??\nOutput this string at the end of each output paragraph.\n\n-h\n--help Display some help.\n\nfieldname\nThe  fields  from the file, that are matched with the regex given.  The fieldnames are\ncase insensitive.\n\noutfieldname\nThe fields from the file, that are output for each record.  If the first field  listed\nbegins with ^, then the list of fields that follows will NOT be output.\n",
                "subsections": []
            },
            "BUGS": {
                "content": "Be  warned  that the author has only a shallow understanding of the dpkg packaging system, so\nthere are probably tons of bugs in this program.\n\nThis program comes with no warranties.  If running this program causes fire and brimstone  to\nrain down upon the earth, you will be on your own.\n\nThis  program accesses the dpkg database directly in places, querying for data that cannot be\ngotten via dpkg.\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Adam Heath <doogie@debian.org>\n\n\n\nDEBIAN                                    Debian Utilities                               DPKG-AWK(1)",
                "subsections": []
            }
        }
    }
}