David, On Tuesday 06 February 2007 11:19, David Haller wrote:
Hello,
On Mon, 05 Feb 2007, Randall R Schulz wrote:
Well, it's good to learn that sed has an in-place editing option.
$ sed -i sed: invalid option -- i [..] $ sed --version GNU sed version 3.02
That is an unportable not quite recent addition to GNU sed. Other sed implementations don't have it. Just keep that in mind, ok?
% sed --version GNU sed version 4.1.4 Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, to the extent permitted by law. It's true that older and non-Gnu sed implementations do not have this option, but unless you're going to restrict yourself to POSIX-compliant subsets of all commands you use in scripting, you're really committing yourself to the Gnu implementations. These implementations are riddled with very significant extensions and improvements, many of which I'm not willing to forgo, knowing as I do that my scripts will always be running in a Gnu / Linux environment.
-dnh
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org