help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie can't get gnu grep to produce results


From: RichardL
Subject: Newbie can't get gnu grep to produce results
Date: Wed, 25 Jul 2007 07:12:30 -0700
User-agent: G2/1.0

Hi,

I'm running GNU grep 2.5.1 over WinXP/SP2.

I could not get grep to produce and output for some simple queries.
My efforts are shown below in a (slightly edited) transcript of a
Command Window session.

Any advice on how I can grep to produce search results would be
greatly appreciated.
--
Richard


K:\Temp\GnuTest>dir
07/25/2007  08:59 AM                34 HelloWorld.txt
07/25/2007  09:00 AM                39 Song.txt
               2 File(s)             73 bytes

K:\Temp\GnuTest>type HelloWorld.txt
I say "Hello",
you say "Goodbye".
K:\Temp\GnuTest>

K:\Temp\GnuTest>type song.txt
Hello, young lovers,
wherever you are!
K:\Temp\GnuTest>

K:\Temp\GnuTest>grep -l -i 'hello' *.txt

K:\Temp\GnuTest>grep -l -i 'hello' *.*

K:\Temp\GnuTest>grep -l -i 'Hello' *.*

K:\Temp\GnuTest>grep --v
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


K:\Temp\GnuTest>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]