#!/bin/ksh [ -d fonts_ja ] || mkdir fonts_ja sw=false if $sw; then (cd fonts_ja && find '/Applications/Adobe Acrobat Reader DC.app/Contents/Resources//Resource/CIDFont' -name '*.otf') | while read font_path; do echo "$font_path" cp -p "$font_path" . done fi if $sw; then [ -d fonts_ja/ipa_takao_fonts ] || mkdir fonts_ja/ipa_takao_fonts cat <