quick grep question

From: spam (spam_at_zeouane.org)
Date: 04/19/05


Date: Tue, 19 Apr 2005 20:16:16 +0200

IHi,
I have a directory structure, and I want to find a string in a file
buried deep in that structure ..

  find . -name "filename" -exec grep "string" {}\;

... would do it ?

Now if I want to *replace* that chain with something else ..? I'm lost.

Thanks in advance.

-- 
spam


Relevant Pages

  • Re: strip away the directory structure on file name
    ... ShowFileName = Replace(strFullPath, Left(strFullPath, InStrRev(strFullPath, ... Function ShowFileName(strFullPath As String) ... In a sheet cell ... I get the directory structure too. ...
    (microsoft.public.excel)
  • Re: programmatic linking to external tables
    ... since the directory structure is static and the file naming convention ... Sub test() ... Dim filename As String ... Dim sourceSql As String ...
    (microsoft.public.access.queries)
  • Re: Newby Question FC4
    ... >> But the OP is looking for a specific string in a file in the directory ... Mild case of "answer fixation" I missed the -r. ... Prev by Date: ...
    (Fedora)
  • Re: Newby Question FC4
    ... >> contain a certain text string such as the word gateway or mode or any ... >> I would just use the text search string gui by right-clicking start. ... >> I am pretty sure grep or find should work but I can't figure out how. ... This will search from where you are in the directory structure in a ...
    (Fedora)
  • Re: Programatically find the pages in a project
    ... you could recursively loop through the directory structure looking for ... Public Sub GetFiles(ByVal path As String, ByVal extension As String, ByVal ...
    (microsoft.public.dotnet.framework.aspnet)