Hallo All (again)
In a previous thread I had the following:
/^langue/ { pr(); $0 = "<preferred_lang>"$2"</preferred_lang>"
print;next}
the pr function is not related to this question. I have changed this to:
/^langue/ { pr(); language = $2; $0 = "<preferred_lang>"language"</preferred_lang>"
print; next}
Now the question. How would I go about
1) if the language variable = en, then print <Country>UK</country> on a seperate line
2) else if the language variable = fr, then print <Country>FR</Country> on a seperate line
Any ideas?
In a previous thread I had the following:
/^langue/ { pr(); $0 = "<preferred_lang>"$2"</preferred_lang>"
print;next}
the pr function is not related to this question. I have changed this to:
/^langue/ { pr(); language = $2; $0 = "<preferred_lang>"language"</preferred_lang>"
print; next}
Now the question. How would I go about
1) if the language variable = en, then print <Country>UK</country> on a seperate line
2) else if the language variable = fr, then print <Country>FR</Country> on a seperate line
Any ideas?