From owner-freebsd-questions@FreeBSD.ORG Sun Dec 24 04:31:15 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 3DE0216A403 for ; Sun, 24 Dec 2006 04:31:15 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [63.240.77.83]) by mx1.freebsd.org (Postfix) with ESMTP id 0B7B713C45A for ; Sun, 24 Dec 2006 04:31:14 +0000 (UTC) (envelope-from josh@tcbug.org) Received: from gimpy (c-24-118-186-172.hsd1.mn.comcast.net[24.118.186.172]) by comcast.net (sccrmhc13) with ESMTP id <2006122404310001300ofgsce>; Sun, 24 Dec 2006 04:31:14 +0000 From: Josh Paetzel To: freebsd-questions@freebsd.org Date: Sat, 23 Dec 2006 22:30:58 -0600 User-Agent: KMail/1.9.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612232230.58352.josh@tcbug.org> Cc: Jack Stone 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: Sun, 24 Dec 2006 04:31:15 -0000 On Saturday 23 December 2006 21:29, Jack Stone wrote: > Appreciate a tip on how to search & replace hundreds of *.htm files: > >From this: > >
  • > In other words, I just want the relative path and remove all the > extra: http://www.domain.htm/ portions of the lines. > > Large thanks in advance for help. > > Happy Holidays! > Jack > perl -p0777i -e 's/http:\/\/www.domain.com\///g' *.htm -- Thanks, Josh Paetzel