Find the answer to your Linux question:
Results 1 to 2 of 2
cat email.txt | egrep -is -f spam.txt Is there a replacement for egrep that might either 1) work faster or 2) stop on the first match it sees? (Either one ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242

    Replacement for egrep?


    cat email.txt | egrep -is -f spam.txt

    Is there a replacement for egrep that might either
    1) work faster or 2) stop on the first match it sees?
    (Either one might be helpful, #2 would be great.)

  2. #2
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Code:
    cat email.txt | grep -i "mytext" | head -1
    Regards

    Andutt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •