Hello All. I am a total linux n00b and am having trouble with scripts. I am taking a basic linux class and I have to write a script with input and output, and it must have branching (a loop or if statement).
In any case, I have decided to write a script (hopefully) that will ask the user what the base and height of their triangle is, and then my script will calculate the area for the user.
Writing the actual script will be fun and challenging for me, but to test out launching scripts I have been researching them online and found this website:
http://tldp.org/HOWTO/Bash-Prog-Intr...O-2.html#ss2.1
In any case, I am using Ubuntu right now and went to: Applications -> Accessories -> Text Editor.
Then wrote:
#!/bin/bash
echo Hello World
I then clicked file -> save as... and the name of my file is "hello.sh". Under the "save in folder" option I chose the folder "Documents".
So then I click Applications -> Accessories -> Terminal and type "./hello.sh" and the next line says "bash: ./hello.sh: No such file or directory"
How do I launch a script in terminal/What am I doing wrong?!
Any help is GREATLY appreciated :-D