Escaping quote marks
Ray Parrish
crp at cmc.net
Fri Nov 20 19:57:54 UTC 2009
Nils Kassube wrote:
> Ray Parrish wrote:
>
>> Is there any way to get the code to work correctly so it does not
>> break the urls on space characters?
>>
>
> Maybe replace each space character of the URL with "%20"?
>
>
> Nils
>
Hello,
I have already manually edited the site map file, and replaced all of
the space characters with %20, but I would like to know how to handle
the spaces in my script so that doesn't have to be done.
I'm releasing the script as open source software, and it would be nice
if I did not have to tell my users they need to manually replace all of
the space characters with %20 in their site maps.
Ahhh, it just dawned on me... I bet I can replace the space characters
with %20 as I load each line in from the file. I have no idea how to do
that, as bash is not real string handling friendly, but I will work on
it some, and see if I can figure out how to.
Later, Ray Parrish
--
The Future of Technology.
http://www.rayslinks.com/The%20Future%20of%20Technology.html
Ray's Links, a variety of links to usefull things, and articles by Ray.
http://www.rayslinks.com
Writings of "The" Schizophrenic, what it's like to be a schizo, and other
things, including my poetry.
http://www.writingsoftheschizophrenic.com
More information about the ubuntu-users
mailing list