Thanks for your reply, this is infect the result I am trying to get, I do have a city.txt file which have a city name per line, and all this is static it stays the same but the: CITY-FROM-TEXT-FILE-LINE-1 xx CALIFORNIA CA xx
–
eddieFeb 5 '12 at 20:12

@eddie: If you paste a snippet of your actual city.txt I can try and tweak the command above (or you can tweak it yourself! ). Without knowing what you're actually dealing with, I can only really guess.
–
sladenFeb 5 '12 at 21:44

The city.txt have only city names in this format: city1 city2 etc
–
eddieFeb 6 '12 at 6:52

@eddie: does the city.txt file contain each of the names "city1, city2, etc" all on one line (separated by eg. spaces/commas); or one city per line; or one city and several other pieces of data per line; or something else? I'm happy to assist further, but it would be very useful if you could paste a short snippet to clarify what the input looks like.
–
sladenFeb 6 '12 at 10:02

im sorry im not clear to begin with .. It is one city name per line no commas or anything like that Thanks
–
eddieFeb 6 '12 at 12:04