[sword-devel] Automated Shell Script

sword-devel@crosswire.org sword-devel@crosswire.org
Thu, 7 Dec 2000 00:58:14 EST


--part1_42.da26d93.276080f6_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hey Everyone,

       A couple weeks ago I sent in a question about how I could replace a 
string of texts in a whole bunch of files at once. I was given the following 
as a way to do it:

grep -l "the sun is green" *.html|xargs perl -p -i -e s/"the sun is 
green"/"the sun is yellow"/g

Anyways the problem I found was when I was trying to update a string of text: 
Site Updated 11/29/00 to Site Updated 12/6/00 I was unable to do it sense the 
back slash is used in the syntax of the command. Is there anyway I can get 
around this so that it just reads it as the character "/" in the file, so 
that I can easy change these values. Thanks for your time.

-Jonathan
BJW7TOAEM@aol.com

--part1_42.da26d93.276080f6_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<HTML><FONT FACE=arial,helvetica><FONT  COLOR="#004080" SIZE=3><B>Hey Everyone,
<BR>
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A couple weeks ago I sent in a question about how I could replace a <BR>string of texts in a whole bunch of files at once. I was given the following <BR>as a way to do it:
<BR>
<BR>grep -l "the sun is green" *.html|xargs perl -p -i -e s/"the sun is <BR>green"/"the sun is yellow"/g
<BR>
<BR>Anyways the problem I found was when I was trying to update a string of text: <BR>Site Updated 11/29/00 to Site Updated 12/6/00 I was unable to do it sense the <BR>back slash is used in the syntax of the command. Is there anyway I can get <BR>around this so that it just reads it as the character "/" in the file, so <BR>that I can easy change these values. Thanks for your time.
<BR>
<BR>-Jonathan
<BR>BJW7TOAEM@aol.com</B></FONT></HTML>

--part1_42.da26d93.276080f6_boundary--