Skip to content

Instantly share code, notes, and snippets.

@hysios
Created February 27, 2018 09:26
Show Gist options
  • Save hysios/2d8c72eafcca7160b8d521173cec9cdb to your computer and use it in GitHub Desktop.
Save hysios/2d8c72eafcca7160b8d521173cec9cdb to your computer and use it in GitHub Desktop.
# 1. 排序去除重复
cat customers.txt|sort | uniq > cc.txt
# 2. 转换成拼音码文件
echo > cc_py.txt
while read p; do
pypinyin $p -s TONE2 >> cc_py.txt
done <cc.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment