eoldos

Page history last edited by Pete 2 yrs 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");print}' $file > temp$$
mv temp$$ $file
done

Comments (0)

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