From: "Smith, Mike R." <smithmr@bowater.com>
Subject: Control characters in shell file
Date: Tue, 28 Jan 2003 16:54:15 -0500 [thread overview]
Message-ID: <A424DCBA502973429A8429FA1197B04E01EC6C16@gvlsnt78.bowater.com> (raw)
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.
reply other threads:[~2003-01-28 21:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox