can't invoke sed properly...

Lorenzo Taylor lorenzo at taylor.homelinux.net
Mon May 2 16:50:23 EDT 2005


-----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-----




More information about the Speakup mailing list