Date: Mon, 15 Jun 1998 12:23:50 -0400 (EDT) From: Patrick Gardella <patrick@cre8tivegroup.com> To: Jerry Preeper <preeper@cts.com> Cc: freebsd-questions@FreeBSD.ORG Subject: RE: searching files on server Message-ID: <XFMail.980615122350.patrick@cre8tivegroup.com> In-Reply-To: <3.0.5.32.19980615082837.00852740@crash.cts.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980615122350.patrick>