Control characters in shell file

From: Smith, Mike R. (smithmr@bowater.com)
Date: Tue Jan 28 2003 - 16:54:15 EST


I have a script to check filesystem space. I wanted to add a new filesystem to the check so I opened the file with Emacs and copied one section, pasted it, and substituted the new filesytem name in the check area. I noticed that in Emas there where ^M characters at the end of every line. After I saved the file and it ran I got error

./filesystem_check[21]: ^M: not found

Now when I edit using vi I see ^M at the end of the section I copied from and in the section I added. This should be extremely simple. Any one know why these characters are showing up in a file where I have never seen them before. The code should work but I think the ^M is causing a problem.

Version 5.1 pk 5 of Tru64. Thanks for any help.



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:05 EDT