sed -e "s/pommeranian\|prussian\|hannoverian\|saxon\|old_prussian/north_german/g" -e "s/hessian\|rheinlaender\|bavarian\|austrian/south_german/g" -e "s/english\|lowland_scottish\|highland_scottish\|welsh\|breton\|scottish/british/g" -e /central_american/!"s/american/dixie/g" -e "s/lombard/north_italian/g" -e "s/umbrian\|sicilian/south_italian/g" -e "s/castillian\|galician\|andalucian/spanish/g" -e "s/portugese/portuguese/g" -e "s/cosmopolitan_french\|gascon\|normand\|aquitaine\|burgundian\|occitain\|wallonian/french/g" -e "s/finnish\|sapmi\|ingrian/finnish/g" -e "s/slovenian/slovene/g" -e "s/croatian/croat/g" -e "s/serbian/serb/g" -e "s/polish\|schlesian/polish/g" -e "s/maghreb_arabic\|al_misr_arabic\|al_suryah_arabic\|al_iraqiya_arabic\|bedouin_arabic/arabic/g" -e "s/berber\|tuareg/tuareg/g" -e "s/persian\|east_persian/persian/g" -e "s/azerbadjani/azerbaijani/g" -e "s/tunguz/tungus/g" -e "s/zapotek\|aztek/central_american/g" -e "s/inca/south_andean/g" -e "s/guarani\|teremembe\|tupinamba\|mataco/guarani/g" -e "s/arawak\|carib/caribeno/g" -e "s/dakota\|shawnee\|delaware/dakota/g" -e "s/cherokee\|iroquis\|huron\|creek/cherokee/g" -e "s/chihan/nanfaren/g" -e "s/cantonese/yue/g" -e /mongol/!"s/mon\|burmese\|chin/burmanese/g" -e "s/polynesian/polynese/g" -e "s/malayan\|cham/malayan/g" -e "s/filipino/philippine/g" -e "s/madagascan\|madagasque/malagasy/g" -e "s/sulawesi/javan/g" -e "s/central_thai/thai/g" -e "s/lao\|northern_thai/laotian/g" -e /ashanti/!"s/shan/asian_minor/g" -e "s/papuan\|melanesian\|moluccan/melanese/g" -e "s/aboriginal/aborigin/g" -e "s/panjabi\|kashmiri/panjabi/g" -e "s/sindhi/sindi/g" -e "s/senegambian\|dyola/dyula/g" -e "s/bantu/african_minor/g" -e "s/ethiopian/amhara/g" -e "s/kongolese/bakongo/g" -e /somali/!"s/mali/fulbe/g" -e "s/yorumba/yoruba/g" -e "s/aka\|ashanti/akan/g" -e "s/reformed/protestant/g" -e "s/buddhism/theravada/g" -e "s/hinduism/hindu/g" -e "s/shinto\|confucianism/mahayana/g" -e "s/animism\|shamanism/pagan/g" daft8.txt > daft9.txt
...
sed -e /workshop=yes/"s/farmers/craftsmen/" -e /marketplace=yes/"s/farmers/craftsmen/" -e /tax_assessor=yes/"s/farmers/clerks/" -e /regimental_camp=yes/"s/farmers/soldiers/" -e /war_college=yes/"s/farmers/officers/" -e /courthouse=yes.*university=yes/"s/farmers/aristocrats/" -e /courthouse=yes.*fine_arts_academy=yes/"s/farmers/aristocrats/" gawk7.txt > gawk7.5.txt
sed -e /courthouse=yes.*marketplace=yes.*tax_assessor=yes.*customs_house=yes.*textile=yes/"s/farmers/capitalists/" -e /courthouse=yes.*marketplace=yes.*tax_assessor=yes.*customs_house=yes.*refinery=yes/"s/farmers/capitalists/" gawk7.5.txt > gawk8.txt
...
sed -n 241,243p eu3mmptorev.bat > awky2.awk
BEGIN { FS = ";" }
{ OFS = ";" }
{print $1,$2,$3,$4,$5,$6,$7,$8/11000}
gawk -f awky2.awk gawk10.txt > gawk11.txt
sed -n 246,249p eu3mmptorev.bat > awky5.awk
BEGIN { FS = ";" }
{ OFS = ";" }
/farmers/ {print $1,$2,$3,$4,$5,$6,$7,$8*6}
!/farmers/ {print $1,$2,$3,$4,$5,$6,$7,$8}
gawk -f awky5.awk gawk11.txt > gawk12.4.txt
sed -n 252,255p eu3mmptorev.bat > awky6.awk
BEGIN { FS = ";" }
{ OFS = ";" }
/nanfaren/ {print $1,$2,$3,$4,$5,$6,$7,$8*1.7}
!/nanfaren/ {print $1,$2,$3,$4,$5,$6,$7,$8}
gawk -f awky6.awk gawk12.4.txt > gawk12.5.txt
sed -n 258,260p eu3mmptorev.bat > awky3.awk
BEGIN { FS = ";" }
{ OFS = ";" }
{print $1,$2,$3,$4,$5,$6,$7,$8+0.5}
gawk -f awky3.awk gawk12.5.txt > gawk12.txt
sed -n 263,265p eu3mmptorev.bat > awky4.awk
BEGIN { FS = ";" }
{ OFS = ";" }
{print $1,$2,$3,$4,$5,$6,$7,int($8)}
gawk -f awky4.awk gawk12.txt > gawk13.txt
...
sed -e "s/;;;;0$/;;;;1/" POP.txt > POPs.csv