From owner-freebsd-isp Wed Apr 29 12:56:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA14321 for freebsd-isp-outgoing; Wed, 29 Apr 1998 12:56:02 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mercury.jorsm.com (mercury.jorsm.com [207.112.128.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA14250 for ; Wed, 29 Apr 1998 12:55:57 -0700 (PDT) (envelope-from jeff@mercury.jorsm.com) Received: from localhost (jeff@localhost) by mercury.jorsm.com (8.8.7/8.8.7) with SMTP id OAA28396 for ; Wed, 29 Apr 1998 14:55:57 -0500 (CDT) Date: Wed, 29 Apr 1998 14:55:56 -0500 (CDT) From: Jeff Lynch To: freebsd-isp@FreeBSD.ORG Subject: RE: Adding footers automatically to served HTML pages In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 29 Apr 1998, Khetan Gajjar wrote: > On Wed, 29 Apr 1998, Stunt Pope wrote: > > >You could turn on SSI's (Server Side Includes) and then use > > > > > > They are on, but it means adding that line into all the pages, > and force myself to add them onto any new pages I have. > > I'll have to explore the Add Handler option which someone > else pointed out. Aw c'mon. It's not so bad.... #!/bin/sh for i in `find -name '*.htm*' -print` do cat $i | sed 's%%%' > $i.tmp mv $i.tmp $i done You can get fancier with the sed command but hopefully this will give you some ideas. Awk, perl, sed, sh are your friends. ========================================================================= Jeffrey A. Lynch JORSM Internet email: jeff@jorsm.com Northwest Indiana's Full-Service Provider Voice: (219)322-2180 927 Sheffield Avenue, Dyer, IN 46311 Autoresponse: info@jorsm.com http://www.jorsm.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message