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