..currently all styleUrl values are red.png, however i want to change this according to whatever value "network type:" is, so if it's hot i want a red.png and if it's medium it should be green.png and if cold it'll be blue.png
the files already exist and contain 1000's of lines, i just dont have the awk knowledge to manage a quick change
can you please provide some insight?
i was thinking along the lines of this:
awk'/^network type:/{ choose some graphic, like foo=blue.png;}/\<styleUrl\>/{print " <styleUrl>"foo"</styleUrl>"; next;}{print}'
..but i must include some "if" statements for the different colors, that's where i get lost..
No thread Hijacking in future and open up your own thread. This has been separated from the other thread. You'll also get a pm for a notice on using code tags.