perl -i.bak -pe 'chomp; $_.="\r\n";' [download]
In reply to Re: newlines for windows from unix by jeroenes in thread newlines for windows from unix by Anonymous Monk