N
Ninja Li
Hi,
I have a file with two fields, country and city and "|" delimiter.
Here are the sample formats:
USA | Boston
USA | Chicago
USA | Seattle
Ireland | Dublin
Britain | London
Britain | Liverpool
I would like to have the output like the following:
USA | Boston, Chicago, Seattle
Ireland | Dublin
Britain | London, Liverpool
I tried to open the file, use temp variables to store and compare
the countries and it looks very cumbersome. Is there an easier way to
tackle this?
Thanks in advance.
Nick
I have a file with two fields, country and city and "|" delimiter.
Here are the sample formats:
USA | Boston
USA | Chicago
USA | Seattle
Ireland | Dublin
Britain | London
Britain | Liverpool
I would like to have the output like the following:
USA | Boston, Chicago, Seattle
Ireland | Dublin
Britain | London, Liverpool
I tried to open the file, use temp variables to store and compare
the countries and it looks very cumbersome. Is there an easier way to
tackle this?
Thanks in advance.
Nick