Hello,
I'm trying to write my first script as shown:
#!/bin/bash
echo "Hello World!"
sleep 100
I saved the file and changed permissions to make it executable. I've also added the script directory to my PATH. When I run the script however I'm given the following error:
/home/me/bin/script1: 1: /home/me/bin/script1: #!/bin/bash: not found
Hello World!
It runs the script however for some reason it sounds like there is an error on the first line.
Any help would be appreciated.
Jeremy
Bookmarks