In VI, you could also try,
:%s/^V^M//g
which will remove the ^M characters. The ^M character is the "Return" key on
the keyboard. Obviously there is a hidden ^M character.
Let us know if this fixed your problem.
Subbarao
http://investeur.co/
-----Original Message-----
From: Mukesh Yadav [mailto:mak.gnu@xxxxxxxxx]
Sent: Thursday, July 28, 2011 5:40 PM
To: ILUG-C
Subject: Re: [Ilugc] What is wrong in this script ?
There is a DOS/Windows line-ending character ^M at the end of the
shebang line. Can you remove it and try running the script again?
'dos2unix' utility can help you do that or you could do a global
search and replace in your favorite editor or use sed or whichever way
is convenient for you.