Damyan Ivanov <[EMAIL PROTECTED]> wrote:
> > So I use use `unset -e' prior to the egrep and `set -e' right afterwards?
>
> No, this is ugly :-)
>
> > The warnings aren't fatal. I just prefer to display them.
>
> Now I see.
>
> In this case use `egrep -e "pattern" ${LOG} || /bin/true'. This way the
> result of the compound command is always true.
Very sweet! Works like a charm. Many thanks!
:-)
Peter
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]