Sha256: 77496e2e668148f10baf28fd6901049f749d41aaf94b01ce91e8054bed61f4ed
Contents?: true
Size: 396 Bytes
Versions: 52
Compression:
Stored size: 396 Bytes
Contents
#!/bin/sh ZIP_FILE=ken_all.zip if [ -e tmp/${ZIP_FILE} ]; then echo "tmp/${ZIP_FILE} が存在するので、再ダウンロードは行いません。" else mkdir tmp curl -# -o tmp/${ZIP_FILE} -LO http://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip fi pushd tmp rm -f KEN_ALL.CSV unzip ${ZIP_FILE} iconv -f SJIS -t UTF8 KEN_ALL.CSV > ../data/住所/addresses.csv popd
Version data entries
52 entries across 52 versions & 1 rubygems