Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- 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 ..."
- else
- rm -rf /tmp/unix2doc.tmp
- echo "linux2win: converting file $1 is not Linux format ..."
- fi
- shift
- done
Add Comment
Please, Sign In to add comment