Re: quick grep question
From: Conrad J. Sabatier (conrads_at_cox.net)
Date: 04/19/05
- Next message: spam: "Re: quick grep question"
- Previous message: spam: "quick grep question"
- In reply to: spam: "quick grep question"
- Next in thread: spam: "Re: quick grep question"
- Reply: spam: "Re: quick grep question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 19 Apr 2005 18:48:25 GMT
In article <1gva7oh.1vjvmqtemwelbN%spam@zeouane.org>,
spam <spam@zeouane.org> wrote:
>
>
>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 ?
Yes.
>Now if I want to *replace* that chain with something else ..? I'm lost.
find . -name "filename" -exec sed -i '' -e 's/oldstring/newstring/g' {} \;
Incidentally, this really isn't a FreeBSD-specific issue. Questions of this
nature are better directed to one of the other comp.unix.* groups, such as
comp.unix.shell or comp.unix.questions.
>Thanks in advance.
You're welcome.
-- Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
- Next message: spam: "Re: quick grep question"
- Previous message: spam: "quick grep question"
- In reply to: spam: "quick grep question"
- Next in thread: spam: "Re: quick grep question"
- Reply: spam: "Re: quick grep question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|