Hi, At work I wrote some scripts to generate the delta status between two distros in patch and version comparison forms. And I needed a uniq-dctrl, which I implemented really cheaply with gawk. This of course cannot be used as a general purpose tool and should probably not be included in the package, but anyway others may find it useful, or something. ;)
Attached the tiny script. regards, guillem
#!/usr/bin/gawk -f BEGIN { RS="" FS="\n" old_pkg="" pkg="" } { # FIXME: We assume the Packages field is always the first one. pkg=$1 if (old_pkg != pkg) { print $0 print "" old_pkg=$1 } }