create a variable shell script code example
Example 1: sh declare variable
#!/bin/sh
MY_MESSAGE="Hello World"
echo $MY_MESSAGE
Example 2: bash create variable
#create a variable to store name
name="Lance Armah"
#!/bin/sh
MY_MESSAGE="Hello World"
echo $MY_MESSAGE
#create a variable to store name
name="Lance Armah"