From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from user-0c99bpv.cable.mindspring.com ([24.148.175.63] helo=taylor.homelinux.net) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1DShqG-0004EW-00 for ; Mon, 02 May 2005 16:48:36 -0400 Received: from lorenzo by taylor.homelinux.net with local (Exim 4.50) id 1DShrz-0003sd-Vc for speakup@braille.uwo.ca; Mon, 02 May 2005 16:50:41 -0400 Date: Mon, 2 May 2005 16:50:23 -0400 From: Lorenzo Taylor To: "Speakup is a screen review system for Linux." Message-ID: <20050502205023.GA10916@taylor.homelinux.net> References: <002001c54f54$c8466170$c2a9e744@nedelko83f1172> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <002001c54f54$c8466170$c2a9e744@nedelko83f1172> OS: Debian GNU/Linux Unstable (Sid) Linux-Kernel: 2.6.11-1-k7 Linux-User: 346322 (http://counter.li.org) User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: lorenzo@taylor.homelinux.net X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on taylor.homelinux.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.2 X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on taylor.homelinux.net) Subject: Re: can't invoke sed properly... X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 20:48:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Someone tell me if there is an easier way, but this worked for me: cat my-file | sed "s/red/blue/g" > my-file This line replaced red with blue every time it appeared in the file. I am using GNU sed version 4.1.4 here. Your mileage may vary. Lorenzo - -- "We decided that we should evaluate the Microsoft offerings first. Once we realised what a powerful set of tools they were, it became self-evident this was the right way to go down." Microsoft: the right way to go down -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCdpKPG9IpekrhBfIRAg8oAJ0WeiXYLHbneHy2fzhSDq79r/23YACglvjU j3rSTXu9XzKF+eUximAMCB0= =sm17 -----END PGP SIGNATURE-----