HEX
Server: Apache
System: Linux pdx1-shared-a1-11 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mollywopper (10344313)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //bin/dpkg-awk

#!/bin/sh # be sure to chmod +x this! # ./script "fieldname: regex" "fieldname: regex" ... -- # "fieldname" "fieldname" ... # Find all records matching the regex expressions, and output the # requested fieldnames. # The fieldnames can be upper or lowercase. When outputing the # fieldnames, the case used is the same as specified on the # cmd line. # sample cmdline: # # dpkg-awk --sort "Package" "Status: .* installed$" -- ^Description ^Conffiles # --sort(-s) "<space separated list of fields to sort on>" # --filename(-f) <filename to parse, default = /var/lib/dpkg/status> # dpkg-awk [options] <regex expresion list> -- <output field list> # <output field list> # If the first char is "^", then it is a list of fields *NOT* to output, # otherwise, it will output the listed fields. unset POSIXLY_CORRECT awk -f /usr/share/awk/getlong.awk -f /usr/share/awk/dpkg-awk.awk \ -- "--exebase=$(basename $0)" "--exedir=$(dirname $0)" "$@"