[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: recursively find/replace text in files
- From: akonstam trinity edu
- To: bedouglas earthlink net, For users of Fedora Core releases <fedora-list redhat com>
- Cc:
- Subject: Re: recursively find/replace text in files
- Date: Fri, 14 Oct 2005 15:08:30 -0500
On Fri, Oct 14, 2005 at 07:53:47AM -0700, bruce wrote:
> hi..
>
> can't find my old solution to this!! need to know how to find/replace 'text'
> in files in a directory tree. i'd like to be able to either do all files, or
> all files of a specific extension
>
> replace "foo" with "bar" in all files in the dir tree
> replace "foo" with "bar" in all (*.cpp) files in the dir tree
>
> thanks
sounds like a job for find combined with sed.
=======================================================================
Do not seek death; death will find you. But seek the road which makes death
a fulfillment.
-- Dag Hammarskjold
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
telephone: (210)-999-7484
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]