From owner-freebsd-questions Sun Jan 26 20:01:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA15236 for questions-outgoing; Sun, 26 Jan 1997 20:01:42 -0800 (PST) Received: from narcissus.ml.org (root@brosenga.st.pitzer.edu [134.173.120.201]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA15230 for ; Sun, 26 Jan 1997 20:01:39 -0800 (PST) Received: (from ben@localhost) by narcissus.ml.org (8.7.5/8.7.3) id UAA06580; Sun, 26 Jan 1997 20:01:26 -0800 (PST) Date: Sun, 26 Jan 1997 20:01:26 -0800 (PST) From: Snob Art Genre To: Robert Chalmers cc: bsd Subject: Re: how do I get sed to search sundirs? In-Reply-To: <199701270326.NAA04282@nanguo.chalmers.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.