[nSLUG] GPS Turn by Turn (Voice) and XML

Eri Ramos Bastos bastos.eri at gmail.com
Mon Jan 25 11:22:53 AST 2010


Oh... OK. Sorry.

Something with a similar approach to your python script bellow:

for test in {h,H}{y,Y}{w,W}; do echo -e
"<str>\n\t<tag>TXT_${test}__STR</tag>\n\t<txt>Highway</tx>\n</str>";
done

Regards,
Eri Ramos Bastos

On Mon, Jan 25, 2010 at 10:41 AM, Hatem Nassrat <hnassrat at gmail.com> wrote:
> On Mon, Jan 25, 2010 at 7:24 AM, Eri Ramos Bastos <bastos.eri at gmail.com> wrote:
>> sed 's,[Hh][wW][yY],Hwy,g' file.xml > newfile.xml
>>
>> Or use sed -i for in-place substitution.
> [...]
>> On Mon, Jan 25, 2010 at 9:53 AM, David Potter <dlpotter at eastlink.ca> wrote:
> [...]
>>> Can anyone help me figure out some way to use regular expressions (?) in
>>> the <tag> </tag> elements to sanitize case abnormalities and standardize
>>> the result across different map data...?
>
> I didn't think this is what David meant with the regex's that he
> wanted to add. From what I understood he wants to add a regex that
> garmin would understand. In any case the following sed would also work
> as above:
>
>    sed 's/hwy/Hwy/ig'
>
> --
> Hatem Nassrat
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/mailman/listinfo/nslug
>



More information about the nSLUG mailing list