bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed feature request


From: Eric Heitzman
Subject: Re: sed feature request
Date: Thu, 25 Sep 2003 10:37:34 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624

I would like to apologize to the bug-gnu-utils folks for mistakenly requesting a feature that already exists in the current version of sed. The -i switch is already in 4.0.7 as was pointed out by Sephan and others.

My linux box came with sed 3.x which didn't have the -i switch. I went looking for the GNU sed manual, and I found this page:
  http://www.gnu.org/manual/sed/

The "HTML" version of that manual is also for the out of date version, and doesn't discuss the -i switch. I wasn't really aware that there was a newer version until some time after I sent in the original feature request.

Sorry to waste your time...   :|

Eric



Stepan Kasal wrote:

Hello,

On Wed, Sep 24, 2003 at 06:24:50PM -0400, Karl Berry wrote:
put a edit-in-place feature into every program (sort being the one

sed-4.0.x contains this feature.  You can get it from
ftp://ftp.gnu.org/gnu/sed/sed-4.0.7.tar.gz
and mirrors.

for f in *; do
 sed ... $f >$f.tmp
 mv $f.tmp $f
done

I often write such simple loops on my cmd line; so the -i option makes
little difference for me.

Stepan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]