![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You should have a variable already set called HOME. Try:
echo $HOME |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |