shell set variable code example
Example 1: sh declare variable
#!/bin/sh
MY_MESSAGE="Hello World"
echo $MY_MESSAGE
Example 2: shell set environment variable
export VARNAME="my value" # shorter, less portable version
Example 3: shell script variable
TEXT="Hello World!"
echo $TEXT
# ouput: Hello World!