Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 1997 20:01:26 -0800 (PST)
From:      Snob Art Genre <ben@narcissus.ml.org>
To:        Robert Chalmers <robert@nanguo.chalmers.com.au>
Cc:        bsd <freebsd-questions@freebsd.org>
Subject:   Re: how do I get sed to search sundirs?
Message-ID:  <Pine.BSF.3.91.970126195844.6556A-100000@narcissus.ml.org>
In-Reply-To: <199701270326.NAA04282@nanguo.chalmers.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Jan 1997, Robert Chalmers wrote:

> I have a little sed script that will search through all files in a
> directory, replacing one phrase with another, and writing it back.
> How do I get it to step down through all the sub-directories as well?
> ta
> bob

Use ls -R | xargs sed [options].

> -- 
> Triple-W: P.O. Box 2003. Mackay. 4740       		   +61-0412-079025
> robert@chalmers.com.au for Whirled Peas		http://www.chalmers.com.au
> Location: Whitsunday Web Works.			21'7" S, 149'14" E.
> 



 Ben

The views expressed above are not those of the Worker's Compensation 
Board of Queensland, Australia.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970126195844.6556A-100000>