commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This permit to convert an UNIX file to DOS file.
You can use it in a loop to convert multiple files, like :
for i in *.bat; do sed -i 's/$/\r/' $i; done