Below is a code (obtained from the web http://dwxchange.blogspot.com/2008_08_01_archive.html) that works well in removing carriage returns on a DOS file to Unix. I would like to know how I can go about modifying this code (or any recommended codes to remove carriage returns on multiple files) to work on multiple files in a directory. This code works on one file at a time. Oh by the way, I'm new to the awk command :(
awk '{ sub("\r$", ""); print }' dosfile.txt > unixfile.txt