You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Eric Toll <et...@vipstructures.com> on 2004/04/14 20:07:02 UTC
Cat syntax to reveal file
Foolish question:
I have a rule "1.3 BODY_EMPTY BODY_EMPTY" which seems to hit everytime.
from /etc/mail/spamassassin dir I want to know which file this rule is in.
'less *.cf > file' then edit file and search for string is ugly
'cat *.cf | grep empty_body' yeilds the string but does not reveal from which file it comes.
TIA
Eric
Re: Cat syntax to reveal file
Posted by Martin McWhorter <m_...@prairiegroup.com>.
Eric Toll wrote:
> Foolish question:
>
> I have a rule "1.3 BODY_EMPTY BODY_EMPTY" which seems to hit everytime.
>
> from /etc/mail/spamassassin dir I want to know which file this rule is in.
>
> 'less *.cf > file' then edit file and search for string is ugly
>
> 'cat *.cf | grep empty_body' yeilds the string but does not reveal
> from which file it comes.
grep empty_body *.cf
Re: Cat syntax to reveal file
Posted by Matt Kettler <mk...@evi-inc.com>.
At 02:07 PM 4/14/2004, Eric Toll wrote:
>'cat *.cf | grep empty_body' yeilds the string but does not reveal from
>which file it comes.
why bother with cat at all? you don't need it to use grep.
grep empty_body *.cf
And that should tell you which file grep found it in.
Re: Cat syntax to reveal file
Posted by Theo Van Dinter <fe...@kluge.net>.
On Wed, Apr 14, 2004 at 02:07:02PM -0400, Eric Toll wrote:
> 'cat *.cf | grep empty_body' yeilds the string but does not reveal from which file it comes.
uhm. "grep -i empty_body *.cf" ?
--
Randomly Generated Tagline:
"Luge strategy? Lie flat and try not to die." - Tim Steeves