| delorie.com/archives/browse.cgi | search | 
| X-Spam-Check-By: | sourceware.org | 
| X-SoftScan-Status: | clean (virus: 1/1/1/1, spam: 0, paranoid: 1/1) | 
| MIME-Version: | 1.0 | 
| Subject: | grep -f problem | 
| Date: | Mon, 16 Jul 2007 16:12:23 +0200 | 
| Message-ID: | <8834A84C87A2C148AD46921BB8BFC97C047997EF@S1SE1MAIL.emea1.ad.group> | 
| From: | =?iso-8859-1?Q?M=E5rten_Gustafsson?= <Marten DOT Gustafsson AT cision DOT com> | 
| To: | <cygwin AT cygwin DOT com> | 
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm | 
| List-Id: | <cygwin.cygwin.com> | 
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> | 
| List-Archive: | <http://sourceware.org/ml/cygwin/> | 
| List-Post: | <mailto:cygwin AT cygwin DOT com> | 
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> | 
| Sender: | cygwin-owner AT cygwin DOT com | 
| Mail-Followup-To: | cygwin AT cygwin DOT com | 
| Delivered-To: | mailing list cygwin AT cygwin DOT com | 
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l6GECX6S001617 | 
Hi I have a problem with grep -f. Here is my example script: #!sh echo -e "calvin\nhobbes" > expressions.txt echo -e "calvin chases\nhis favourite imaginary friend\nhobbes" > text.txt grep -f expressions.txt text.txt The output is: $ grepbug.sh hobbes The expected output: C:\UnxUtils\usr\local\wbin>sh grepbug.sh calvin chases hobbes I am not very familiar with unix or cygwin. Is there a kind soul to verify that this is really a problem by running the scrip on a true unix? I have both UnxUtils and cygwin installed. I cannot use UnxUtils because I cannot make its shell work interactively, and it seems like I cannot use cygwin because grep doesn´t work :-( Thanks Mårten -- 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/
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |