#!/bin/sh cd "${0%/*}/.." mkdir -p data readonly BASE=https://www.unicode.org/Public/UCD/latest/ucd readonly PATHS=' auxiliary/GraphemeBreakProperty BidiBrackets Blocks CaseFolding DerivedAge DerivedCoreProperties DerivedNormalizationProps emoji/emoji-data extracted/DerivedBidiClass extracted/DerivedBinaryProperties extracted/DerivedDecompositionType extracted/DerivedEastAsianWidth extracted/DerivedLineBreak extracted/DerivedNumericType extracted/DerivedNumericValues PropList Scripts SpecialCasing UnicodeData ' for path in $PATHS do name="data/${path##*/}" test -f "$name" || wget -q "$BASE/$path.txt" -O "$name" & done wait