Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] About sed
Date: Wed, 09 Nov 2005 04:42:26
Message-Id: 20051109043752.GA10611@waltdnes.org
In Reply to: Re: [gentoo-user] About sed by Rafael Barreto
1 On Mon, Nov 07, 2005 at 03:38:00AM -0200, Rafael Barreto wrote
2 > Is this right? Well, what I really want is replace just CLOCK="fool1"
3 > by CLOCK="fool2" keeping the comments in line.
4
5 That is not what sed is designed to do. "sed" is "Streaming EDitor".
6 You specify an input file, and the changed file goes to STDOUT. If you
7 want to change the original file, you need to use "ed". For details,
8 "man ed".
9
10 --
11 Walter Dnes <waltdnes@××××××××.org> In linux /sbin/init is Job #1
12 My musings on technology and security at http://tech_sec.blog.ca
13 --
14 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] About sed Neil Bothwick <neil@××××××××××.uk>