| 
View
 

eoldos

Page history last edited by peterga 15 years, 5 months ago

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\n");print}' $file > temp$$
   mv temp$$ $file
 done

 

Comments (0)

You don't have permission to comment on this page.