[Top][All Lists]

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

Re: Newbie can't get gnu grep to produce results

From: RichardL
Subject: Re: Newbie can't get gnu grep to produce results
Date: Thu, 26 Jul 2007 09:10:51 -0700
User-agent: G2/1.0

On Jul 26, 5:48 am, Pascal Bourguignon <> wrote:
> RichardL <> writes:
> > On Jul 25, 11:39 am, Pascal Bourguignon <>
> > wrote:
> >> RichardL <> writes:
> >> > K:\Temp\GnuTest>grep -l -i 'hello' *.txt
> >> I know not much of MS-DOS and even less of MS-Windows, but ISTR that
> >> the * is not expanded by COMMAND.COM.  grep finds no file named
> >> '*.txt' so it prints nothing, which is as documented.
> >> Try:
> >>    grep -l -i hello song.txt HelloWorld.txt
> >> If that works, then download
> >> install cygwin, and use bash as shell instead of COMMAND.COM.
> >> Unix shells do expand characters such as * themselves.
> > Thanks Pascal,
> > The command you recommended worked perfectly,  i.e. it reported back
> > both filenames.
> > I am in the process of trying out Win-Bash because it advertises
> > itself as being self-contained, i.e no DLLs to worry about.  Do you
> > think Cygwin's bash is substantially superior to Win-Bash?  While I
> > await learning your opinion, I'll fool around with it.
> I don't know Win-Bash, it might be perfect.
> Honestly, cygwin installs a whole unix-like environment (with DLLs),
> so you may prefer Win-Bash.
> --
> __Pascal Bourguignon__          
> Version: 3.12
> GCS d? s++:++ a+ C+++ UL++++ P--- L+++ E+++ W++ N+++ o-- K- w---
> O- M++ V PS PE++ Y++ PGP t+ 5+ X++ R !tv b+++ DI++++ D++
> G e+++ h+ r-- z?
> ------END GEEK CODE BLOCK------

Thanks, Pascal,

As I just posted to Stan, I'm happy with the results I've gotten thus
far with my Win-Grep trials.

BTW, I think I'm a hopeless dilettante:  I'm presently working on
enhancing my JavaScript knowledge along with Ruby & Rails,  but I
followed the link to the Common Lisp article and decided to try try
that out.  I was delighted to see that you worked on a machine to play
one of my favorite games: Go.

> Version: 3.12
> GM a74 s: d- C+++ N++ w++ PS+ PE tv+ tv b b h++ r--
> ------END GEEK CODE BLOCK------

reply via email to

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