delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/09/18:52:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <20021009225234.76048.qmail@web40510.mail.yahoo.com>
Date: Wed, 9 Oct 2002 15:52:34 -0700 (PDT)
From: Sheryl McKeown <iboulder AT yahoo DOT com>
Reply-To: smckeown AT mac DOT com
Subject: grep -i -R path32 * vs grep -i -R path32 *.vb*
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Better titled, "That dot thing again on Windows XP
Pro..."

Ok, again I'm trying to search recursively through a
directory structure looking for specific values.

According to grep --help grep -R should walk the
directory structure.  Cool.

So, "grep -i -R path32 *" returns, as expected,
.grep -i -R path32 *
IntelliLab/IntelliLab.vbp:Path32="..Build"
IntelliLab/IntelliLabR.vbp:Path32="..BUILD"
IntelliLab/intellilabr.vbpold:Path32="Build"
LabTestMnt/LabTestMnt.vbp:Path32="..BUILD"
Ordent/ordent.vbp:Path32="..BUILD"
QC/qc.vbp:Path32="..BUILD"
Reports/Reports.vbp:Path32="..BUILD"
RsltsEnt/RsltsEnt.vbp:Path32="..BUILD"
RsltsInqry/ptresinq.vbp:Path32="..BUILD"

But I want to search only files with a specific
extension.  Enter the dot thing.  So I try
grep -i -R path32 *.vb*
which returns nothing.

I understand that the directories, technically, do not
have a . in the name, therefore they won't be 
searched.  The same reason grep -i -R path32 *.*
returns nothing.

So the question becomes, how do I grep a directory
structure and search only files with a specific name.
(I prefere a grep only solution vs "find . -name
"somefilename" -exec ...).

Thanks,
Sheryl



__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019