Back to TechNotes

 # Converts UNIX style EOLs to DOS style
 # Syntax: eoldos <filename(s)>
 # E.g.: eoldos myfile.txt myotherfile

 for file in $1
 do
   awk '{sub(/$/,"\r");print}' $file > temp$$
   mv temp$$ $file
 done


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts