General discussion


running scripts

By sbodducherla ·
I get the following messages when I run a shell script[83]: ^M: not found.[85]: ^M: not found.[87]: ^M: not found.[89]: ^M: not found.[90]: ^M: not found.

What do the numbers indicate and how to fix them?


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

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


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

btw the numbers are line nos.


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

Related Discussions

Related Forums