[EMAIL PROTECTED] (Bob Proulx) writes: > Matthew Woehlke wrote: >> If you need to replace the file, it is best to write to a temporary >> file and use e.g. 'mv mynewfile myfile' when you are done. > > Check out the newish sed option --in-place. It does what you want. > > $ sed --in-place $SEDCOMMAND $SOMEFILE > > This is available in sed version 4 and later.
Or use ed. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash