Ok, so basically i have created the script by going to bin in the terminal and typing in
sudo nano mytesterscript.sh
From there i wrote the script and saved it. To make it executable, i then used the command
chmod +x mytesterscript.sh
then when i wanted to execute it by using
./mytesterscript.sh
I get the error:
bin/bash: bad interperter:no such file or directory
I can execute the script by typing
bash mytesterscript.sh
but i want to be able to do it like
./mytesterscript.sh
Any ideas guys?
#!bin/bash
#declare $STRING Variable
STRING= "Hello world"
#print variable on screen
echo $STRING
mytesterscript.sh? Looks like shebang is incorrect./in front of thebin.