: bad interpreter: No such file or directory
Writing by shivdev on Monday, 4 of August , 2008 at 11:14 am
Running a bash script, gives the following error:
: bad interpreter: No such file or directory
The carriage return was not properly converted to *nix format. (maybe the file was created in Windows)
To fix it run the following.
$ dos2unix filename — convert to *nix format
To copy the file to Windows run the following.
$ unix2dos filename — convert to Windows/DOS format
Leave a comment
Category: Linux
- Add this post to
- Del.icio.us -
- Digg -
- -
- Tweet -
-
-
No comments yet.
You must be logged in to post a comment.