- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Variables
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2006 06:30 AM
тАО08-17-2006 06:30 AM
Variables
what is the purpose of variable, which are the different types of variables , how to manipulate it.
- Tags:
- variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2006 06:35 AM
тАО08-17-2006 06:35 AM
Re: Variables
Based upon an earlier post of yours, I believe that your question relates to the shell.
Shell variables are valid only within the shell in which they are declared. Starting a subshell or another process does not inherit a variable from the parent shell or process. That is, the variable is a 'local' one, not a 'global' one.
"Environmental" variables are 'global' variables. That is, they are visible by your current shell and any process started by it. The shell PATH, PS1, IFS, and HOME variables are examples of environmental ones.
"Shell variables" would also include the $0, $1...$n positional parameters, representing your program name and the arguments passed to it, respectively.
Shell variables include the $? which is the return value from the last command run; $# which is the number of positional parameters; and the $! which is the pid of the last background process.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2006 06:38 AM
тАО08-17-2006 06:38 AM
Re: Variables
variables are changeable, hence the name containers for data.
That is as simple and basic as I can put it.
env dipslays all set variables and that may help you understand what they are for.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2006 06:40 AM
тАО08-17-2006 06:40 AM
Re: Variables
It would help if you would narrow trhe scope of your question. Is is mathematical? Does it pertain to shell scripting? Perl? C? FORTRAN? Computer languages in general?
One very basic difference between computer languages and matmematics is that:
X = X + 1
is a perfectly valid computer statement but absolute nonsense in algebra. That is why without a scope, your question is all but impossible to answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2006 06:46 AM
тАО08-17-2006 06:46 AM
Re: Variables
http://en.wikipedia.org/wiki/Variable
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!