- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Shell Var?
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
тАО03-27-2006 09:05 PM
тАО03-27-2006 09:05 PM
What does this exactly mean:
[
\
....
is somewhere an overview or something else?
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 09:07 PM
тАО03-27-2006 09:07 PM
Re: Shell Var?
I prefer if [xxxx];then
hjhdhd
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 09:23 PM
тАО03-27-2006 09:23 PM
Re: Shell Var?
91 is the ascci value for [
93 is the ascii value for ]
man ascii ( look for 5b and 5d (hex for 91,93)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 09:57 PM
тАО03-27-2006 09:57 PM
Re: Shell Var?
# cat /usr/share/lib/pub/ascii
will give letter and ascii value to it.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 10:13 PM
тАО03-27-2006 10:13 PM
Re: Shell Var?
But what is the reason for using the ascii method? is this environment dependently?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 10:19 PM
тАО03-27-2006 10:19 PM
Re: Shell Var?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=143878
See in that, netconf file is configured with [ and \ instead of [] for shell variables.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 10:21 PM
тАО03-27-2006 10:21 PM
Re: Shell Var?
Give [ in forums search in the top. It is changed to [ alphabet. Like the shell will interpret.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 10:21 PM
тАО03-27-2006 10:21 PM
Re: Shell Var?
I have not come across a situation were I HAD to use the ascii equivalence codes.
I assume it is down to personal preference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2006 10:43 PM
тАО03-27-2006 10:43 PM
Re: Shell Var?
at first glance it's really confusing. Isn't there really an other reason?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2006 12:43 AM
тАО03-28-2006 12:43 AM
Re: Shell Var?
Check this thread out
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=22050
-Arun