- Forums
- Linux Systems
- Linux Shell Script Varirable Command Sample
This Page Contains information about Linux Shell Script Varirable Command Sample By wallpaperama in category Linux Systems with 0 Replies. [2990], Last Updated: Sat May 18, 2024
wallpaperama
Sat Jan 26, 2008
0 Comments
1180 Visits
ok, today i was writing a linux shell script but i forgot how to declare a variable so im posting here so i wont forget again.
ok, lets say i want the say to print (output on screen) the words
Welcome to Wallpaperama
i can use this example:
CODE:
# DEFINE DOMAIN NAME
DOMAIN="wallpaperama.com"
echo Welcome to $DOMAIN
save the file and make it executable and run it
OUTPUT:
Welcome to wallpaperama.com
you can learn more here:
how-to-create-shell-scripts-creating-new-command-script-file