^ M Command Not found, shell script execution

^M Command Not found, shell script execution

if you get an error, in unix duh-uh, which says “^M Command not found”, that means, you just got a freaking extra useless “space” somewhere in your script (while running the script generally the exception comes immediately after execution/interpretation of the line, where you left the space in the file).
you can also run unix2dos which will help you in this.



6 Responses to “^ M Command Not found, shell script execution”

  1. krishna Says:

    Thanks a lot for the valuable info.

  2. Nagendra Says:

    thats great info

  3. bash-user Says:

    You saved today my day! TIA!

  4. click here Says:

    An cool blog post right there mate ! Cheers for it !

  5. Raghu Says:

    Thanks much, you saved my day.

  6. sree Says:

    is it possible to apply “unix2dos” to all files in a directory tree at same time??Thanks in advance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: