- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command substitution
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
Forums
Discussions
Discussions
Discussions
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
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
07-20-2003 09:29 PM
07-20-2003 09:29 PM
Command substitution
#echo $TEST
Mon Jul 21 13:23:59 EAT 2003
#set
........
TEST='Mon Jul 21 13:23:59 EAT 2003'
TZ=EAT-8
_=2003
how to delete VAR TEST when i execute set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 09:32 PM
07-20-2003 09:32 PM
Re: Command substitution
Try the unset command
unset TEST
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 09:40 PM
07-20-2003 09:40 PM
Re: Command substitution
You can use
# unset
eg
# unset VAR.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 09:41 PM
07-20-2003 09:41 PM
Re: Command substitution
#unset
to unset the vaiable
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 09:44 PM
07-20-2003 09:44 PM
Re: Command substitution
You can use the unset command.
# unset
eg
# unset TEST
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 09:54 PM
07-20-2003 09:54 PM
Re: Command substitution
try this :
# unset TEST
HTH
Radim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 10:10 PM
07-20-2003 10:10 PM
Re: Command substitution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 10:14 PM
07-20-2003 10:14 PM
Re: Command substitution
# unset TEST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2003 11:17 PM
07-20-2003 11:17 PM
Re: Command substitution
What you need to do in shell is:
unset TEST
(unset
Good luck.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 03:23 AM
07-21-2003 03:23 AM
Re: Command substitution
unset test
to unset a variable. you don't really need to unset this variable unless you are going to have your script read for this variable again. Basically by this I mean if you have your script do something and print the date along with your action.... and want the action to repeat... but with the current date printed each time with it.
you can also unset multiple variables at the same time if you wish to.
unset test1 test2 test3
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2003 06:37 AM
07-21-2003 06:37 AM
Re: Command substitution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 06:33 AM
07-25-2003 06:33 AM
Re: Command substitution
I don???t know about you, but I don???t see that post as being nothing more than an attempt to get some points. I personally feel that John was simply expanding on the issue above and beyond what the previous replies revealed. I know that there is a high possibility that some new ???Sys Admin in Training??? may very well be helped by the additional information provided as they search the forums for answers and/or knowledge.
Even if I am incorrect in my thoughts, I am personally more appalled at your attempt to slam a person publicly for any reason.
This is supposed to be a professional forum with professional people. Personally, I don???t feel that you are exhibiting very professional behavior when you make comments like that about other forumers.
That is, of course, just my own personal thoughts on the subject.
Have a nice day???
PS. I am not expecting, nor do I want, any points for this post. Please assign it a 0 (zero).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 06:42 AM
07-25-2003 06:42 AM
Re: Command substitution
You're seeing the cleaned up version of this thread. I don't even remember who it was but somebody had replied like 20 times and gotten 10 points for each one. And it was obvious that they weren't a "stuck submit key" syndrom, either, because there were other answers interspersed.
That's what the reference was about.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2003 06:02 AM
08-01-2003 06:02 AM
Re: Command substitution
I can only comment on what I see when I arrive, not what was there that I have never seen.
Please forgive me???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2003 06:28 AM
08-01-2003 06:28 AM
Re: Command substitution
unset test
this can be done for multiple variable at the same time.
regards,