Discussion Locked

running scripts

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I get the following messages when I run a shell script

rssa001_automate.sh[83]: ^M: not found.
rssa001_automate.sh[85]: ^M: not found.
rssa001_automate.sh[87]: ^M: not found.
rssa001_automate.sh[89]: ^M: not found.
rssa001_automate.sh[90]: ^M: not found.

What do the numbers indicate and how to fix them?

thanks

1 reply

by sachind

Hi
It seems the script ur running is in dos file format, which ends with a ^M .
' cat -e rssa001_automate.sh ' will show you
something like
line 1^M$
line 2^M$
just "dos2unix "
will do the trick for you.

or

sed 's/^M$//' script > newscript
will also help

btw the numbers are line nos.

regards
sd

This discussion is closed to new replies.