Mark Plowman wrote:

> But...
> 
> grep doesn't do "-v" or (I think) "-q".
> 
> This must be simple, could an expert out there help me please?

You could use sed, or use a new version of busybox (which acts as grep).

grep -v can be done with sed this way:

sed '/pat/d'

grep -q could be done this way:

$(cat input | sed '/pat/' | wc -l) -ne 0

sed is full GNU sed, whereas grep is busybox's minimalist grep.

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to