General discussion

Locked

running scripts

By sbodducherla ·
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

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

dos files

by sachind In reply to running scripts

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 <script_old> <script_new/old>"
will do the trick for you.

or

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

btw the numbers are line nos.

regards
sd

Back to Linux Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums