Skip to content

Instantly share code, notes, and snippets.

@hui
Last active October 26, 2018 03:36
Show Gist options
  • Save hui/4730993 to your computer and use it in GitHub Desktop.
Save hui/4730993 to your computer and use it in GitHub Desktop.
  • 解压缩文件, 修正GBK编码
env LANG=GBK 7za x -olande "kepulande-r2  1.31.zip"
find . -exec convmv -f GBK -t utf8 --notest -r {} \;
  • 修改 import_image_libraries_for_kepulande.rake

  • 修改要导入的xls文件名

  • 修改解压缩的文件路径

  • RAILS_ENV=production bundle exec rake import_image_libraries_for_kepulande

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment