#!/bin/sh

ALL="./be/transitive_redirects_be.ttl.bz2 ./min/transitive_redirects_min.ttl.bz2 ./oc/transitive_redirects_oc.ttl.bz2 ./ca/transitive_redirects_ca.ttl.bz2 ./mg/transitive_redirects_mg.ttl.bz2 ./fr/transitive_redirects_fr.ttl.bz2 ./pms/transitive_redirects_pms.ttl.bz2 ./mrj/transitive_redirects_mrj.ttl.bz2 ./fy/transitive_redirects_fy.ttl.bz2 ./uk/transitive_redirects_uk.ttl.bz2 ./nap/transitive_redirects_nap.ttl.bz2 ./ms/transitive_redirects_ms.ttl.bz2 ./jv/transitive_redirects_jv.ttl.bz2 ./mzn/transitive_redirects_mzn.ttl.bz2 ./hu/transitive_redirects_hu.ttl.bz2 ./tr/transitive_redirects_tr.ttl.bz2 ./la/transitive_redirects_la.ttl.bz2 ./mk/transitive_redirects_mk.ttl.bz2 ./hy/transitive_redirects_hy.ttl.bz2 ./ml/transitive_redirects_ml.ttl.bz2 ./war/transitive_redirects_war.ttl.bz2 ./ro/transitive_redirects_ro.ttl.bz2 ./pt/transitive_redirects_pt.ttl.bz2 ./ht/transitive_redirects_ht.ttl.bz2 ./qu/transitive_redirects_qu.ttl.bz2 ./ur/transitive_redirects_ur.ttl.bz2 ./vec/transitive_redirects_vec.ttl.bz2 ./af/transitive_redirects_af.ttl.bz2 ./sco/transitive_redirects_sco.ttl.bz2 ./commons/transitive_redirects_commons.ttl.bz2 ./pnb/transitive_redirects_pnb.ttl.bz2 ./cy/transitive_redirects_cy.ttl.bz2 ./ga/transitive_redirects_ga.ttl.bz2 ./ru/transitive_redirects_ru.ttl.bz2 ./de/transitive_redirects_de.ttl.bz2 ./wikidata/transitive_redirects_wikidata.ttl.bz2 ./hr/transitive_redirects_hr.ttl.bz2 ./ne/transitive_redirects_ne.ttl.bz2 ./ar/transitive_redirects_ar.ttl.bz2 ./he/transitive_redirects_he.ttl.bz2 ./sv/transitive_redirects_sv.ttl.bz2 ./bpy/transitive_redirects_bpy.ttl.bz2 ./ba/transitive_redirects_ba.ttl.bz2 ./hi/transitive_redirects_hi.ttl.bz2 ./sa/transitive_redirects_sa.ttl.bz2 ./ku/transitive_redirects_ku.ttl.bz2 ./sk/transitive_redirects_sk.ttl.bz2 ./simple/transitive_redirects_simple.ttl.bz2 ./hsb/transitive_redirects_hsb.ttl.bz2 ./io/transitive_redirects_io.ttl.bz2 ./cs/transitive_redirects_cs.ttl.bz2 ./br/transitive_redirects_br.ttl.bz2 ./az/transitive_redirects_az.ttl.bz2 ./it/transitive_redirects_it.ttl.bz2 ./ia/transitive_redirects_ia.ttl.bz2 ./mr/transitive_redirects_mr.ttl.bz2 ./ko/transitive_redirects_ko.ttl.bz2 ./lb/transitive_redirects_lb.ttl.bz2 ./gu/transitive_redirects_gu.ttl.bz2 ./sq/transitive_redirects_sq.ttl.bz2 ./an/transitive_redirects_an.ttl.bz2 ./gd/transitive_redirects_gd.ttl.bz2 ./fi/transitive_redirects_fi.ttl.bz2 ./cv/transitive_redirects_cv.ttl.bz2 ./scn/transitive_redirects_scn.ttl.bz2 ./lv/transitive_redirects_lv.ttl.bz2 ./kk/transitive_redirects_kk.ttl.bz2 ./bar/transitive_redirects_bar.ttl.bz2 ./pl/transitive_redirects_pl.ttl.bz2 ./lt/transitive_redirects_lt.ttl.bz2 ./eo/transitive_redirects_eo.ttl.bz2 ./li/transitive_redirects_li.ttl.bz2 ./fa/transitive_redirects_fa.ttl.bz2 ./ja/transitive_redirects_ja.ttl.bz2 ./os/transitive_redirects_os.ttl.bz2 ./bs/transitive_redirects_bs.ttl.bz2 ./is/transitive_redirects_is.ttl.bz2 ./ta/transitive_redirects_ta.ttl.bz2 ./wa/transitive_redirects_wa.ttl.bz2 ./es/transitive_redirects_es.ttl.bz2 ./si/transitive_redirects_si.ttl.bz2 ./da/transitive_redirects_da.ttl.bz2 ./zh/transitive_redirects_zh.ttl.bz2 ./uz/transitive_redirects_uz.ttl.bz2 ./sh/transitive_redirects_sh.ttl.bz2 ./arz/transitive_redirects_arz.ttl.bz2 ./mn/transitive_redirects_mn.ttl.bz2 ./tl/transitive_redirects_tl.ttl.bz2 ./ky/transitive_redirects_ky.ttl.bz2 ./ce/transitive_redirects_ce.ttl.bz2 ./new/transitive_redirects_new.ttl.bz2 ./fo/transitive_redirects_fo.ttl.bz2 ./yi/transitive_redirects_yi.ttl.bz2 ./et/transitive_redirects_et.ttl.bz2 ./bug/transitive_redirects_bug.ttl.bz2 ./bg/transitive_redirects_bg.ttl.bz2 ./nn/transitive_redirects_nn.ttl.bz2 ./eu/transitive_redirects_eu.ttl.bz2 ./zh_yue/transitive_redirects_zh_yue.ttl.bz2 ./ast/transitive_redirects_ast.ttl.bz2 ./id/transitive_redirects_id.ttl.bz2 ./sr/transitive_redirects_sr.ttl.bz2 ./bn/transitive_redirects_bn.ttl.bz2 ./vi/transitive_redirects_vi.ttl.bz2 ./vo/transitive_redirects_vo.ttl.bz2 ./el/transitive_redirects_el.ttl.bz2 ./my/transitive_redirects_my.ttl.bz2 ./nl/transitive_redirects_nl.ttl.bz2 ./als/transitive_redirects_als.ttl.bz2 ./ckb/transitive_redirects_ckb.ttl.bz2 ./sl/transitive_redirects_sl.ttl.bz2 ./pa/transitive_redirects_pa.ttl.bz2 ./no/transitive_redirects_no.ttl.bz2 ./ceb/transitive_redirects_ceb.ttl.bz2 ./lmo/transitive_redirects_lmo.ttl.bz2 ./azb/transitive_redirects_azb.ttl.bz2 ./nah/transitive_redirects_nah.ttl.bz2 ./tg/transitive_redirects_tg.ttl.bz2 ./yo/transitive_redirects_yo.ttl.bz2 ./tt/transitive_redirects_tt.ttl.bz2 ./ka/transitive_redirects_ka.ttl.bz2 ./am/transitive_redirects_am.ttl.bz2 ./kn/transitive_redirects_kn.ttl.bz2 ./sah/transitive_redirects_sah.ttl.bz2 ./or/transitive_redirects_or.ttl.bz2 ./su/transitive_redirects_su.ttl.bz2 ./gl/transitive_redirects_gl.ttl.bz2 ./zh_min_nan/transitive_redirects_zh_min_nan.ttl.bz2 ./th/transitive_redirects_th.ttl.bz2 ./sw/transitive_redirects_sw.ttl.bz2 ./te/transitive_redirects_te.ttl.bz2 ./nds/transitive_redirects_nds.ttl.bz2 ./bat_smg/transitive_redirects_bat_smg.ttl.bz2 ./en/transitive_redirects_en.ttl.bz2"
R="./de/transitive_redirects_de.ttl.bz2 ./it/transitive_redirects_it.ttl.bz2 ./ja/transitive_redirects_ja.ttl.bz2 ./nl/transitive_redirects_nl.ttl.bz2 ./en/transitive_redirects_en.ttl.bz2"


for i in $R ;do
i=`echo -n $i | sed 's|^./|http://downloads.dbpedia.org/2016-10/core-i18n/|'`
#curl $i | bzcat | grep  '^<' |awk ' { print $3 $1; } ' | sed 's|<||;s|><|\t|;s|>||'
curl $i | bzcat | grep  '^<' | awk ' { print $1 $3; } ' | sed 's|<||;s|><|\t|;s|>||'
done
