Package: dctrl-tools
Version: 2.24-1
Severity: wishlist

Hi,

it would be nice if grep-dctrl supported -f --file like grep:

  -f FILE, --file=FILE
     Obtain patterns from FILE, one per line.  The empty file contains
     zero patterns, and therefore matches nothing.

My use case is that I have a list of package names that I want to
extract from a Packages file (-P --file=pkg.list), and inversely, want
to remove from a Packages file (-P --not --file=pkg.list). At the
moment I have to resort to ugly for loops in shell to invoke
grep-dctrl N times, or try to construct a regexp pattern to match the
list of package names at onces, which isn't handy to do in shell
either.

(An alternative solution would be to allow --pattern to be passed
multiple times. I guess if either is implemented, the other isn't much
extra effort.)

Thanks for considering,
Christoph
-- 
c...@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: PGP signature

Reply via email to