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

Hatem Nassrat hnassrat at gmail.com
Mon Jan 25 10:41:09 AST 2010


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



More information about the nSLUG mailing list