Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env bash
a+=('america' 'africa' 'asia' 'antarctica' 'australia' 'austria' 'aachen' 'aberdeen' 'abu dhabhi' 'addis ababa' 'adelaide' 'aizuwakamatsu' 'aktobe' 'alexandria' 'algeris' 'amandora' 'amsterdam' 'alaska' 'ankara' 'antwerp' 'arad' 'arak' 'athens' 'auckland' 'agra' 'ahmedabad' 'ahmednagar' 'aizwal' 'ajax' 'ajmer' 'akola' 'algeris' 'alwar' 'ambala' 'americana' 'amravati' 'atlanta' 'augusta' 'aurangabad' 'austin' 'amritsar' 'arunachal pradesh' 'assam' 'agartala' 'azerbaijan' 'andhra pradesh' 'andaman islands' 'argentina' 'angola' 'abuja' 'asunican' 'alberta' 'arizona' 'antigua' 'alappuzha' 'alabama' 'andora' 'alicante' 'afghanistan' 'annapolis' 'arkanas city' 'atlantic city' 'augsburg' 'aceh' 'awaji islands' 'akita' 'aomori' 'anantpur')
b+=('bengaluru' 'brisbane' 'botswana' 'bermuda' 'bristol' 'budapest' 'bucharest' 'birmingham' 'bhuj' 'berlin' 'bikaner' 'bhaghdad' 'belgium' 'brazil' 'bulgaria' 'burkina' 'bhutan' 'bhadrak' 'bhubhaneshwar' 'bihar' 'brasilia' 'buenos aires' 'bangladesh' 'beijing' 'boston' 'bay city' 'barcelona' 'baraboo' 'barbados' 'boonville' 'baku' 'bandung' 'basel' 'bharuch' 'bhopal' 'bijapur' 'boyota' 'bangkok' 'buldhana' 'bern' 'bilbao' 'binghamton' 'blacksburg' 'bordeaux' 'brighton' 'brooklyn' 'brussels')
c+=('canada' 'cameroon' 'california' 'canberra' 'chandigarh' 'chattisgarh' 'cairo' 'cambodia' 'chiplun' 'coimbatore' 'cambridge' 'cape town' 'czech republic' 'cuba' 'columbia' 'chile' 'cyprus' 'china' 'chad' 'chicago' 'charlotte' 'central african republic' 'costa rica' 'croatia' 'carcas' 'cape coral' 'celina' 'charleston' 'chester' 'clinton' 'columbo' 'christchurch' 'columbus' 'copenhagen' 'canton' 'chennai' 'carolina')
d+=('delhi' 'damascus' 'dublin' 'diu' 'daman' 'dispur' 'daimabad' 'doha' 'dhaka' 'daulatabad' 'darjeeling' 'dallas' 'durango' 'dominican republic' 'dubai' 'dholavira' 'durham' 'davenport' 'dortmund' 'dundee' 'dibrugarh' 'darwin' 'denpasar' 'denver' 'dar es salam' 'deoli' 'derby' 'dhule' 'donetsk' 'djibouti' 'durban')
e+=('egypt' 'eucador' 'el paso' 'erie' 'estonia' 'england')
f+=('finland' 'frankfurt' 'florida' 'firodabad' 'ferozpur' 'france' 'fiji' 'florence' 'friedericksburg')
g+=('gangtok' 'guinea' 'ghaziabad' 'germany' 'guanghzou' 'gandinagar' 'gandhidham' 'goa' 'guwahati' 'greenland' 'gwailor' 'gabon' 'gulbarga' 'georgia' 'geneva' 'greenevilla' 'gorakhpur' 'guyana' 'guatemala' 'greece')
h+=('helsinki' 'holand' 'hokkaido' 'hungary' 'hiroshima' 'houston' 'honduras' 'hubli' 'hyderabad' 'halifax' 'hamilton' 'hollywood' 'hong kong' 'hawaii' 'hanoi')
i+=('india' 'indonesia' 'italy' 'ireland' 'iceland' 'indiana' 'indianapollis' 'indira point' 'ichalkaranji' 'igatpuri' 'islamabad' 'istanbul' 'istambul' 'indore' 'illinois' 'iran' 'iraq' 'itanagar' 'imphal')
j+=('jamshedpu' 'jamnagar' 'jersey city' 'jhelum' 'jabalpur' 'jerusalem' 'jeddha' 'jaipur' 'jhansi' 'jharkhand' 'japan' 'jalandhar' 'jodhpur' 'jalpaiguri' 'jammu' 'jakarta' 'jamaica')
k+=('karnataka' 'kuala lumpur' 'kabul' 'kashmir' 'krygyztan' 'kota' 'kazakhstan' 'kerala' 'kiribati' 'kolhapur' 'kochi' 'karachi' 'kanpur' 'kenya' 'kentucy' 'kathmandu' 'kohima' 'kingston' 'kalol' 'kandy' 'kishanganj' 'kofu' 'kyoto' 'kuwait')
l+=('lachung' 'lucknow' 'latur' 'ladhakh' 'lisbon' 'lawasa' 'luxemburg' 'london' 'lahore' 'libya' 'los angeles' 'las vegas' 'lincoln' 'lynn' 'liverpool' 'ludhiana' 'lakshadweep islands')
m+=('maharashtra' 'madhya pradesh' 'moscow' 'madrid' 'mongolia' 'malaysia' 'meerut' 'manglore' 'massachusetts' 'madagascar' 'melbourne' 'manchester' 'manila' 'mirzapur' 'manipur' 'meghalaya' 'mizoram' 'manhattan' 'marshal islands' 'madurai' 'multan' 'mysore' 'mecca' 'medina' 'maldives' 'mahabaleshwar' 'matheran' 'mohenjodaro' 'mexico' 'mexico city' 'myanmar' 'malappuram' 'miami' 'milan' 'montreal' 'munich' 'muscat' 'monacco' 'morocco' 'mozambique' 'madina' 'matsudo' 'matsusaka' 'matsuyama' 'malawi' 'moldova' 'malta' 'mali')
n+=('nagaland' 'nigeria' 'new york' 'new delhi' 'navi mumbai' 'new zealand' 'nottingham' 'new jersey' 'nagasaki' 'nepal' 'nainital' 'nashik' 'nagpur' 'newcastle' 'northern island' 'new orleans' 'niger' 'nairobi' 'norway' 'netherlands' 'north carolina' 'north korea' 'namibia' 'north america' 'north macedonia' 'nanded' 'nandurbar' 'navsari' 'newport' 'noida' 'norwich' 'northampton' 'nagahama' 'nicobar islands' 'nizampur')
o+=('odisha' 'orleans' 'ottawa' 'osaka' 'osmanabad' 'ohio' 'oman' 'ontario' 'oaxaca' 'olympia' 'orlando' 'oshawa' 'oxford' 'oslo' 'ozamiz' 'oklahoma' 'oklahoma city' 'ongole' 'orange' 'oyo')
p+=('patna' 'palembang' 'paris' 'perth' 'peru' 'pakistan' 'punjab' 'pathanhkot' 'papa new guinea' 'port of spain' 'poland' 'phillipines' 'paraguay' 'palatine' 'panama' 'panama city' 'philadelphia' 'porto' 'prague' 'pennyslyavania' 'petoria' 'puri' 'puducherry')
q+=('qatar' 'queensland' 'quebec city' 'quebec' 'quezon city' 'quincy' 'qwakertown')
r+=('rome' 'ranchi' 'rajasthan' 'rio de janerio' 'rampur' 'rawalpindi' 'raipur' 'roha' 'rhodesia' 'rajkot' 'reading' 'riyadh' 'rohtak' 'rotterdam' 'rabat' 'rossov-on-don' 'ratlam' 'roorkee' 'rotherham')
s+=('sikkim' 'switzerland' 'saudi arabia' 'shimla' 'srinagar' 'surat' 'silvasa' 'satara' 'siliguri' 'siachen' 'sudan' 'sweden' 'sao paulo' 'san marino' 'san fransisco' 'san diego' 'san pedro' 'san antonio' 'san andreas' 'san jose' 'san gabriel' 'san macos' 'san juan' 'san luis' 'santiago' 'sri lanka' 'siberia' 'serbia' 'sydney' 'south korea' 'shanghai' 'seoul' 'somalia' 'south africa' 'south carolina' 'southampton' 'saki' 'slovenia' 'surrey' 'stockholm' 'sindhudurg' 'sofia' 'sarajevo' 'stuggart' 'salt lake city' 'sangli' 'santos' 'secunderabad' 'sendai' 'sharjah' 'sheffield' 'shillong' 'swansea' 'sparta' 'smithvilla' 'spain' 'south america' 'st petersberg')
t+=('tripura' 'toronto' 'tanzania' 'telengana' 'taiwan' 'texas' 'timbaktu' 'turkmenistan' 'turkey' 'tiruvananthapuram' 'tokyo' 'tehran' 'tehri city' 'tamil nadu' 'tucson' 'tennesse' 'taipei' 'tasmania' 'trinidad and tobago' 'tajikistan' 'thane')
u+=('uganda' 'uruguay' 'ukraine' 'usa' 'uk' 'uae' 'uttarakhand' 'uttar pradesh' 'udaipur' 'ujjain' 'uzbekistan' 'ube' 'uji')
v+=('varanasi' 'victoria' 'vatican city' 'vietnam' 'venezuela' 'vishakapatnam' 'vadodra' 'vapi' 'valsad' 'valencia')
w+=('washington dc' 'warsaw' 'wellington' 'wardha' 'wolverhampton' 'winston' 'westminster' 'wuhan' 'westland' 'waco' 'waterloo' 'warren' 'wolfsburg')
x+=('xia xia' 'xianyang' 'xiangyang' 'xichang' 'xalapa' 'xiamen' 'xintai')
y+=('yokohama' 'yongzhou' 'yalta' 'yumen' 'yamagata' 'yavatmal' 'york' 'yemen')
z+=('zambia' 'zimbabwe' 'zanzibar city' 'zagazig' 'zabol' 'zaoyang' 'zaria' 'zurich' 'zagreb' 'zandvoort' 'zenica')
for place in "${f[@]}";
do
url='https://world-atlas-api.herokuapp.com/create/'$place''
url=${url// /%20}
curl -s $url
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment