extract_iata_1e100.sh 240 B

1234567
  1. d=$(dirname $0)
  2. cat $d/../snippets/1e100.txt \
  3. | grep -oP '([a-z0-9]{3})(?=([a-z0-9]{5}\-in))' \
  4. | sort -u \
  5. | xargs -i sh -c "echo {}; $d/conv.py -i {}" \
  6. | paste -d' ' - - \
  7. | sort -k1 -u - $d/../data/iata.txt -o $d/../data/iata.txt