On 3/8/2012 5:19 AM, xTrade Assessory wrote:
> Tom Kinghorn wrote:
>>
>> You can then grep through the spam files and search for a common
>> string, eg score.
>>
>> e.g
>> # cd /amavis/virusmails
>> #
>> # ls -la | grep "spam" | grep "Mar  8" | awk '{print $9}' | xargs
>> zgrep -i "score="
>>
>>
> wow 5 processes for each step ... that eventually gets your machine real
> busy ...
>
> at least join all this greps into one grep -e pattern -e pattern or
> egrep "pattern1|pattern2"

That isn't the same search.

grep -e pattern1 -e pattern2    = pattern1 or pattern2

grep pattern1 | grep pattern2    = pattern1 and pattern2

-- 
Bowie

Reply via email to