From owner-freebsd-questions Thu Nov 21 11:32:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A6B737B404 for ; Thu, 21 Nov 2002 11:32:10 -0800 (PST) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDD0843E4A for ; Thu, 21 Nov 2002 11:32:08 -0800 (PST) (envelope-from nk@viteno.net) Received: from fwd00.sul.t-online.de by mailout01.sul.t-online.com with smtp id 18Ex3W-0003Dt-08; Thu, 21 Nov 2002 20:32:06 +0100 Received: from viteno.dyns.net (520054833674-0001@[217.230.12.228]) by fmrl00.sul.t-online.com with esmtp id 18Ex3Q-0yY3gOC; Thu, 21 Nov 2002 20:32:00 +0100 Received: from nk by viteno.dyns.net with local (Exim 4.10) id 18Ex3P-000FK4-00; Thu, 21 Nov 2002 20:31:59 +0100 To: adrian kok Cc: freebsd-questions@FreeBSD.ORG Subject: Re: please help: how do I replace words References: <20021121192354.42378.qmail@web21207.mail.yahoo.com> From: Norbert Koch X-Attribution: viteno X-Face: 5*nyF1\39:,h6Sk1<}(t1O5x!y5y6@XzBRq5LAYj;Xzb*Ak,]@$HL@>: c&#dUFU=U8O(+/6T0k{j{1~uS@GVk4zurEEb.~MoSbG2pM4z!~/<@.tcd `uD`fNR+TM\@++x@!/Bq)24"xD_kGn,jqwVQa|R'|FFxgWa+$0x]p>KE9E /Xk0$%a*2*K]"zOtbk9v0sNgwb2H"IOaEjCVolb5&yW`o#w2}!w!M{Dn&{K0t Date: Thu, 21 Nov 2002 20:31:59 +0100 In-Reply-To: <20021121192354.42378.qmail@web21207.mail.yahoo.com> (adrian kok's message of "Fri, 22 Nov 2002 03:23:54 +0800 (CST)") Message-ID: User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Military Intelligence, i386-unknown-freebsd4.7) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Sender: 520054833674-0001@t-dialin.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG adrian kok writes: > I tried: > > sed -n 's/192.168.0.1/172.16.0.1/w abc.com.tmp' > abc.com > > file abc.com.tmp > only shows l line > abc.com 172.16.0.1 > and missing localhost.abc.com 127.0.0.1 sed 's/192.168.0.1/172.16.0.1/' abc.com > abc.com.tmp norbert. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message