From owner-freebsd-questions Mon Jun 15 09:27:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA09174 for freebsd-questions-outgoing; Mon, 15 Jun 1998 09:27:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from iglou.com (sendmail@iglou2.iglou.com [192.107.41.17]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA09163 for ; Mon, 15 Jun 1998 09:27:16 -0700 (PDT) (envelope-from patrick@cre8tivegroup.com) Received: from gateway.cre8tivegroup.com [204.255.227.105] by iglou.com with esmtp (8.7.3/8.6.12) id 0ylc63-00035n-00; Mon, 15 Jun 1998 12:27:03 -0400 Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3.0.5.32.19980615082837.00852740@crash.cts.com> Date: Mon, 15 Jun 1998 12:23:50 -0400 (EDT) Organization: The Creative Group From: Patrick Gardella To: Jerry Preeper Subject: RE: searching files on server Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sure. You could use the Perl LWP library and the examples from Web Client Programming (O'Reilly). The examples can be downloaded from ftp://ftp.oreilly.com/published/oreilly/nutshell/web-client/examples.tar gz Look at ch5/showlink, ch6/hgrepurl and ch6/checksite All do what you want them to do, the last two do more, as well. I'd start with the last one and work back. Or you could do: grep "string" *.html Patrick On 15-Jun-98 Jerry Preeper wrote: > I am running a web site that has about 18,000 files on it of which I > am guessing about 3,000 to 4,000 are probably web pages that some 150+ > different people have worked on. This week I'm switching service > providers and was wondering if there was an easy way to search all of > the .htm, .html and .shtml files on the server in a particular path > for an IP address. I just want to make sure no-one used IP address > links, which I know some people did. > > I know there are search engines I can install for searching, however, > the IP address is always going to be inside html tags. I was > wondering if there was a way I could search using FreeBSD for an a > particular string in any document with a html extension and have it > print a list of all those documents. > > Jerry Preeper > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message