how to assign value to variable in bash code example Example: shell script variable TEXT="Hello World!" echo $TEXT # ouput: Hello World!