If you edit files on your Windows machine and then transfer them to the
Linux machines, you may get strange behaviour with the shell
programs. This happens because Dos uses two characters for a new
line (carriage-return line-feed), which Unix/Linux uses one
(line-feed). Depending on the editor you use in Unix/Linux, the
extra characters may show up as "^M".
CDF has a good web page describing the difference between the files,
and how to convert them. You can use ~reid/bin/dos2unix on the
linux machines. It's a perl program, so you could study it too. :-)