[Crash-utility] [PATCH] add option -E for foreach
qiaonuohan
qiaonuohan at cn.fujitsu.com
Tue Feb 28 02:05:23 UTC 2012
Hello Dave,
The patch is used to add a new option, "-E regex", to perform the
command(s) on all commands whose names contains a match to "regex".
"regex" is interpreted as an POSIX extended regular expression.
The new option is helpful when using to search some commands whose names
are similar. And I think it is more reliable than "foreach <name>
<command> | grep xxx", for information comes from command may have a
match to "xxx".
P.S.
The patch uses some function defined in regex.h, which is offered by glibc.
--
--
Regards
Qiao Nuohan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: foreach.patch
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120228/b3e7e298/attachment.ksh>
More information about the Crash-utility
mailing list