logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Adam Heath <doogie@debian.org>

DEBIAN                                          Debian Utilities                                     DPKG-AWK(1)

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.

Description

dpkg-awk Parses a dpkg status file (or other similarly formatted file) and outputs the resulting 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.

Name

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

Options

-ffilename--filefilename
              The file to parse.  The default is /var/lib/dpkg/status.

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

       -sfield(s)--sortfield(s)
              A space or comma separated list of fields to sort on.

       -nfield(s)--numericfield(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.

Synopsis

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

See Also