linux shell script varirable command sample

Mobile
feeds
Welcome Login | Register

linux shell script varirable command sample
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Linux Forums
        » » linux shell script varirable command sample
linux shell script varirable command sample
Post Description: linux shell script varirable command sample Linux
Post Tags:
This Post Has Been Viewed 578 Times Since Sat Jan 26, 2008 6:18 pm Author hostman with 0 replies
Next Post »» how to Disable Email in crontab script cron jobs
linux shell script varirable command sample
Advertise On This Page




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

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : linux shell script varirable command sample

Comments and replies About linux shell script varirable command sample
(0) Comments