# dpkg-awk(1) - man - phpman

[DPKG-AWK(1)](https://www.chedong.com/phpMan.php/man/DPKG-AWK/1/markdown)                            General Commands Manual                           [DPKG-AWK(1)](https://www.chedong.com/phpMan.php/man/DPKG-AWK/1/markdown)



## NAME
       dpkg-awk - Utility to read a dpkg style db file

## SYNOPSIS
       **dpkg-awk**  [**(-f|--file)**  **filename**]  [**(-d|--debug)**  **##**] [**(-s|--sort)** **list**] [**(-rs|--rec**___**sep)** **??**]
       '<fieldname>:<regex>' ... -- <out_fieldname> ..

## DESCRIPTION
       _dpkg-awk_ Parses a dpkg status file (or other similarly formatted file) and  outputs  the  re‐
       sulting  records.  It can use regex on the field values to limit the returned records, it can
       also be told which fields to output, and it can sort the matched fields.

## OPTIONS
       _-f_ _filename_
       _--file_ _filename_
              The file to parse.  The default is /var/lib/dpkg/status.

       _-d_ _[#]_
       _--debug_ _[#]_
              Each time this is specified, it increased the debug level.

       _-s_ _field(s)_
       _--sort_ _field(s)_
              A space or comma separated list of fields to sort on.

       _-n_ _field(s)_
       _--numeric_ _field(s)_
              A space or comma separated list of fields that should be  interpreted  as  numeric  in
              value.

       _-rs_ _??_
       _--rec_sep_ _??_
              Output this string at the end of each output paragraph.

       _-h_
       _--help_ Display some help.

       _fieldname_
              The  fields  from the file, that are matched with the regex given.  The fieldnames are
              case insensitive.

       _out_fieldname_
              The fields from the file, that are output for each record.  If the first field  listed
              begins with _^_, then the list of fields that follows will _NOT_ be output.

## BUGS
       Be  warned  that the author has only a shallow understanding of the dpkg packaging system, so
       there are probably tons of bugs in this program.

       This program comes with no warranties.  If running this program causes fire and brimstone  to
       rain down upon the earth, you will be on your own.

       This  program accesses the dpkg database directly in places, querying for data that cannot be
       gotten via dpkg.


## AUTHOR
       Adam Heath <<doogie@debian.org>>



DEBIAN                                    Debian Utilities                               [DPKG-AWK(1)](https://www.chedong.com/phpMan.php/man/DPKG-AWK/1/markdown)
