On Thu, Sep 13, 2001 at 05:13:33PM -0400, Gordon McCrae wrote:
>User Double quotes (i.e ") instead of single quotes (i.e. ') and it will work.

Actually it's more complicated than that because double quotes
then require at least doubling all the backwhack characters (one
of the joys of doing things like this in shell scripts).

>Gordon
>
>"Douglas J. Hunley" wrote:
>
>> I'm trying to write a script to remove parts of a file and am having
>> difficulty. The code looks like:
>> #!/bin/sh
>>
>> for i in zh fr de it ja ko pt es
>> do
>>         for j in `find . -newer .babel -name '*.html' -print`
>>         do
>>                 cat $j.$i | sed
>> 's/http\:\/\/babelfish\.altavista\.com\/urltrurl?lp=en_$i\&url=//g' >>
>> $j.$i.tmp
>>                 mv $j.$i.tmp $j.$i
>>         done
>> done
>>
>> you can see that within the 'sed' I want to use $i... I can't figure out a
>> way to do this. Anyone?
>> --
>> Douglas J. Hunley ([EMAIL PROTECTED]) - Linux User #174778
>> Admin: http://hunley.homeip.net/        Admin: http://linux.nf/
>> Brainbench Linux Administration Certified
>>
>> ~~ Now offering Linux admin services for the home user ~~
>>
>> My honor student hacked your web site.
>> _______________________________________________
>> http://linux.nf -- [EMAIL PROTECTED]
>> Archives, Subscribe, Unsubscribe, Digest, Etc 
>->http://linux.nf/mailman/listinfo/linux-users
>
>_______________________________________________
>http://linux.nf -- [EMAIL PROTECTED]
>Archives, Subscribe, Unsubscribe, Digest, Etc 
>->http://linux.nf/mailman/listinfo/linux-users
>

-- 
Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``It wasn't raining when Noah built the ark.''
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc 
->http://linux.nf/mailman/listinfo/linux-users

Reply via email to