User Double quotes (i.e ") instead of single quotes (i.e. ') and it will work.

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

Reply via email to