define variable in sh script code example Example: sh declare variable #!/bin/sh MY_MESSAGE="Hello World" echo $MY_MESSAGE