Hi All,
Hope you all had a great weekend. I have a file: Text.txt -------- One Match Not Two Match Three Four ------- Now I want to get only the line that has "Match" and not the line "Match Not". I used : cat text.txt | perl -nle 'print $_ if (/Match/)&&(!/Match Not/)' But I want to do that inside one regular expression. Regards, Sarthak Disclaimer This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. The recipient should check this email and any attachments for the presence of viruses. Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email. Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.