Difference between revisions of "Unix2dos"

From wikipost
Jump to navigationJump to search
(No difference)

Latest revision as of 11:59, 20 January 2013

A simple but effective script that inserts the /r (Carriage Return) character for DOS-based text files so that you don't have long, continous lines when viewing under windows.


echo "unix2dos"
for file in "$@"
  awk 'sub("$", "\r")' $file > $file.dos