- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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
тАО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