[Dctrl-tools-devel] Bug#811567: Support reading multiple patterns from file

Christoph Berg myon at debian.org
Tue Jan 19 21:51:02 UTC 2016


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
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/dctrl-tools-devel/attachments/20160119/0246951c/attachment.sig>


More information about the Dctrl-tools-devel mailing list