set variables in shell script code example
Example 1: sh declare variable
#!/bin/sh
MY_MESSAGE="Hello World"
echo $MY_MESSAGE
Example 2: shell script variable
TEXT="Hello World!"
echo $TEXT
# ouput: Hello World!
#!/bin/sh
MY_MESSAGE="Hello World"
echo $MY_MESSAGE
TEXT="Hello World!"
echo $TEXT
# ouput: Hello World!