X-Spam-Check-By: sourceware.org Message-ID: Date: Mon, 16 Jul 2007 10:50:11 -0400 From: "Yitzchok Good" To: cygwin AT cygwin DOT com Subject: Re: grep -f problem In-Reply-To: <8834A84C87A2C148AD46921BB8BFC97C047997EF@S1SE1MAIL.emea1.ad.group> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8834A84C87A2C148AD46921BB8BFC97C047997EF AT S1SE1MAIL DOT emea1 DOT ad DOT group> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On CygWin: $ echo -e "calvin\nhobbes">a $ echo -e "calvin chased\nblah blah\nhobbes">b $ grep -f a b calvin chased hobbes #!sh echo -e "calvin\nhobbes" > expressions.txt echo -e "calvin chases\nhis favourite imaginary friend\nhobbes" > text.txt grep -f expressions.txt text.txt $ ./a.sh calvin chases hobbes -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/