declare a var and assign sentence in shell scripting code example Example: shell script variable TEXT="Hello World!" echo $TEXT # ouput: Hello World!