Linux Shell Script Varirable Command Sample



Linux Shell Script Varirable Command Sample
 (381) dminister a web business
Linux Shell Script Varirable Command Sample
Post Description:
Post Tags: linux, shell, script, varirable, command, sample
This Post Has Been Viewed 391 Times Since Sat Jan 26, 2008 6:18 pm Posted By hostman with 0 replies
Next Post »» how to Disable Email in crontab script cron jobs
Linux Shell Script Varirable Command Sample
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     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About Linux Shell Script Varirable Command Sample




(0) Comments