Off topic:"command not found" - very newbie question
1
0
Entering edit mode
7.2 years ago
Liflock • 0

I am trying to learn the very basics of running bash scripts from my Mac OSX Terminal. I created a script ("Test.sh") containing the following:

 #!/bin/bash

GREETING = "Hello"

...and then try to execute it from the Terminal ("bash Test.sh"). However, I get the following message:

"Test.sh: line 2: GREETING: command not found"

No matter what my script contains, I still get "command not found".

I'm sure it's extremely basic but I can't figure out what's wrong or where to start thinking about this. Any ideas?

software error • 1.0k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1552 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6