The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
echo $PATH doesn't match $HOME/.profile Veestan UNIX for Dummies Questions & Answers 1 04-17-2008 11:15 AM
echo to both screen and a file phamp008 Shell Programming and Scripting 6 01-16-2008 11:48 PM
assigning variable value using echo shellburger Shell Programming and Scripting 2 07-11-2005 08:52 AM
is it possible to echo 'some text' every 10 minutes on my screen vkandati UNIX for Dummies Questions & Answers 1 03-08-2005 02:38 PM
echo or print to screen and file Shakey21 UNIX for Dummies Questions & Answers 2 01-09-2002 04:56 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-23-2006
Registered User
 

Join Date: Feb 2006
Posts: 2
set variable to Home, then echo it to screen

Major Newbie here folks. I'm trying to set a variable to my Home directory and then echo it to the screen.
Any and all help is greatly appreciated.
Thanks
Anna
Reply With Quote
Forum Sponsor
  #2  
Old 02-23-2006
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,614
You should have a variable already set called HOME. Try:
echo $HOME
Reply With Quote
  #3  
Old 02-23-2006
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Home work questions are not allowed in this site.Please post ONLY real problems.
Assuming it is NOT homework question,

Code:
echo $HOME
a=$HOME
echo $a
Reply With Quote
  #4  
Old 02-23-2006
Registered User
 

Join Date: Feb 2006
Posts: 2
variable

I have looked through all data, posts, documentation etc on how to do this. And yes, since you ask it is a homework question. What do you mean, "Real problem"? Isn't this a place to search for help? EXCUSE ME, bargav, for asking. I'm sure you were BORN all knowing and have all the answers.......AND by the way, your reply DID NOT WORK.

Don't bother responding because I certainly will not ever post to this forum again.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0