From owner-freebsd-questions@FreeBSD.ORG Wed Dec 27 05:07:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86E1816A40F for ; Wed, 27 Dec 2006 05:07:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id 63F3C13C473 for ; Wed, 27 Dec 2006 05:07:56 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBR57t4r009278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Dec 2006 21:07:56 -0800 X-Auth-Received: from [192.168.0.101] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id kBR57sLx020274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 26 Dec 2006 21:07:55 -0800 Message-ID: <4591FFAA.8020509@u.washington.edu> Date: Tue, 26 Dec 2006 21:07:54 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.8 (X11/20061220) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <458EDE70.4050008@u.washington.edu> <20061225042334.GA4228@holestein.holy.cow> In-Reply-To: <20061225042334.GA4228@holestein.holy.cow> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.12.26.204932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Search & Replace Issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Dec 2006 05:07:56 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Parv wrote: > in message <458EDE70.4050008@u.washington.edu>, > wrote Garrett Cooper thusly... >> cat file.html | sed -e "s|http://www.domain.com||g" > ... > > Not really a need for cat(1), just use input redirection ... > > sed -e '...' < file > > > - Parv I just meant in general.. assuming that he used fetch or wget to get the file prior to running the search and replace. - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFkf+qEnKyINQw/HARAmXQAJ0e40U/nXUeaQ1/rZqCchLHWKctjACfaNN+ 0+6mf+Psoc48hn4C9dhK5iw= =+yCc -----END PGP SIGNATURE-----