Linux Shell Script Varirable Command Sample
linux shell script varirable command sample
linux, shell, script, varirable, command, sample
Linux Shell Script Varirable Command Sample
Post Description: linux shell script varirable command sample
POST# 1042
Posted On: Fri Feb 29, 2008 12:01 pm
web hosting
Topic: 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

Share:
BBCODE:
HTML Code:


No Repies
(0) Comments for Linux Shell Script Varirable Command Sample

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload