convert.sh 736 B

12345678910111213141516171819202122
  1. export LANG=zh_CN.UTF-8@cjknarrow
  2. unset LC_ALL
  3. ./生成多语言CSV.exe
  4. rm 工具库文件/client_csv_config/cnT/* || echo ok
  5. cp 工具库文件/client_csv_config/cnS/*.csv 工具库文件/client_csv_config/cnT/
  6. mv 工具库文件/client_csv_config/extLangWords.csv /tmp/
  7. mv 工具库文件/client_csv_config/*.csv 工具库文件/client_csv_config/cnT/
  8. find 工具库文件/client_csv_config/cnT/ -name '*.csv' | while read n
  9. do
  10. echo $n
  11. bin/opencc -i "$n" -o "$n" -c bin/s2twp.json
  12. done
  13. mv /tmp/extLangWords.csv 工具库文件/client_csv_config/cnT/
  14. find 工具库文件/client_csv_config/cnT/ -name '*.csv' | while read n
  15. do
  16. echo $n
  17. sed -i '1d' "$n"
  18. sort -n -o "$n" "$n"
  19. sed -i '1iKey,Value' "$n"
  20. done