a guest Jan 11th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- until [ -z $1 ]; do
- unix2dos $1 2>/dev/null
- iconv -f UTF-8 -t GBK $1 -o /tmp/unix2doc.tmp 2>/dev/null
- if [ $? -eq 0 ]; then
- mv /tmp/unix2doc.tmp $1
- echo "linux2win: converting file $1 to WIN format ..."
- rm -rf /tmp/unix2doc.tmp
- echo "linux2win: converting file $1 is not Linux format ..."
RAW Paste Data