Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2006 07:13:03 -0400
From:      "Kurt Wall" <kwall@kurtwerks.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Howto insert string. (Was: Re: [freebsd-questions] awk quickie.)
Message-ID:  <20060807111303.GC667@advent.localdomain>
In-Reply-To: <20060806224732.GA1255@thought.org>
References:  <20060806221015.GA1039@thought.org> <44D66BD2.8050305@thingy.com> <20060806224732.GA1255@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 06, 2006 at 03:47:32PM -0700, Gary Kline wrote:
> 
> 	I've got 80 or so html/php files. Most do have 
> 
> 	<BODY BGCOLOR=#FFFFFF"> 
> 
> 	but a whole slew do not/are missing the BG color code.
> 	So is there some scripto-magic way of finding out which fles are 
> 	missing the above string?  I know how, using an ed/ex script to
> 	insert this string.  

I'd probably do "grep -vi bgcolor filename"

Kurt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060807111303.GC667>