Browse Source

Update script to output extraction result to data folder
Fix ggc.txt order issue

lennylxx 7 years ago
parent
commit
1ef95952ea
4 changed files with 6 additions and 6 deletions
  1. 3 3
      data/ggc.txt
  2. 1 1
      tools/extract_ggc.sh
  3. 1 1
      tools/extract_iata.sh
  4. 1 1
      tools/extract_iata_1e100.sh

+ 3 - 3
data/ggc.txt

@@ -82,7 +82,6 @@ lvlt-lhr2 a8au-aigl
 lvlt-mad1 a8au-h5qe
 lvlt-mad2 a8au-h5ql
 lvlt-slc1 a8au-naje
-mice-msp1 hpjx-hn2e
 megafon-goj1 hxb54vo-bvwe
 megafon-goj2 hxb54vo-bvwl
 megafon-ikt1 hxb54vo-p3ue
@@ -93,11 +92,12 @@ megafon-kuf4 hxb54vo-304z
 megafon-ovb2 hxb54vo-v8cl
 megafon-pkv2 hxb54vo-238l
 megafon-svx1 hxb54vo-n8me
+mice-msp1 hpjx-hn2e
 nctu-tpe2 oju0-u2xl
 nebula-hel1 oxc0a5-ixae
+netservicos-bel1 oxunxg8pjvn-cxae
 phinet-tsa1 2ipoxu-un5e
 phinet-tsa2 2ipoxu-un5l
-netservicos-bel1 oxunxg8pjvn-cxae
 qsc-fra1 9nj-4g5e
 renater-cdg1 gxo5uxg-jqbe
 retelit-mxp1 gxuxapu-hm2e
@@ -118,9 +118,9 @@ transtelecom-cek1 ug5onuxaxjvh-jx3e
 transtelecom-goj1 ug5onuxaxjvh-bvwe
 transtelecom-khv1 ug5onuxaxjvh-3i8e
 transtelecom-kuf1 ug5onuxaxjvh-304e
+transtelecom-kuf2 ug5onuxaxjvh-304l
 transtelecom-ovb1 ug5onuxaxjvh-v8ce
 transtelecom-ovb2 ug5onuxaxjvh-v8cl
-transtelecom-kuf2 ug5onuxaxjvh-304l
 transtelecom-svo3 ug5onuxaxjvh-n8vs
 transtelecom-svo4 ug5onuxaxjvh-n8vz
 transtelecom-svo5 ug5onuxaxjvh-n8v6

+ 1 - 1
tools/extract_ggc.sh

@@ -4,4 +4,4 @@ cat $d/../hosts \
 	| sort -u \
 	| xargs -i sh -c "$d/conv.py -g {}; echo {}" \
 	| paste -d' ' - - \
-	| sort -V -u - $d/../data/ggc.txt
+	| sort -V -u - $d/../data/ggc.txt -o $d/../data/ggc.txt

+ 1 - 1
tools/extract_iata.sh

@@ -4,4 +4,4 @@ cat $d/../hosts \
 	| sort -u \
 	| xargs -i sh -c "$d/conv.py -s {}; echo {}" \
 	| paste -d' ' - - \
-	| sort -k1 -u - $d/../data/iata.txt
+	| sort -k1 -u - $d/../data/iata.txt -o $d/../data/iata.txt

+ 1 - 1
tools/extract_iata_1e100.sh

@@ -4,4 +4,4 @@ cat $d/../snippets/1e100.txt \
 	| sort -u \
 	| xargs -i sh -c "echo {}; $d/conv.py -i {}" \
 	| paste -d' ' - - \
-	| sort -k1 -u - $d/../data/iata.txt
+	| sort -k1 -u - $d/../data/iata.txt -o $d/../data/iata.txt