I have a data file with rows of comma-separated fields like this:
United Kingdom, GB, +44
and I want to produce the following output for each line in the file:
<option value="GB">United Kingdom +44</option>
I got as far as follows with awk, but after adding the angle brackets I am getting mangled output:
BEGIN{FS=",";}
{
print "<option value=\"" $2 "\">";
}