linux shell script varirable command sample

RegisterLogin
linux shell script varirable command sample
Post Description: linux shell script varirable command sample
Tags: linux, shell, script, varirable, command, sample
This Post Was Posted On Feb 29, 2008 By web hosting #2208
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

Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Fri Dec 23, 2011 11:31 am
Powered by: Webune Forums V3