- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: $(variable#pattern)
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
08-25-2003 02:17 PM
08-25-2003 02:17 PM
$(variable#pattern)
For the instance of ${path#/*/}, and
path=/home/billr/mem/long.file.name
I know the result would be billr/mem/long.file.name, but why, can you explain to be why in detail?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2003 02:36 PM
08-25-2003 02:36 PM
Re: $(variable#pattern)
Here, the "shortest part that matches" is the slash character ("/") followed by any character ("*") and then followed by another slash character. Hence, if you remove "/home/" you have met this criteria, yielding "/billr/mem/long.file.name".
Using "${path#/home/}" would have the same effect here.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 08:35 AM
08-26-2003 08:35 AM
Re: $(variable#pattern)
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 08:41 AM
08-26-2003 08:41 AM
Re: $(variable#pattern)
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x9beebfd1b7a7d34cb44054c2be9cf526,00.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 08:42 AM
08-26-2003 08:42 AM
Re: $(variable#pattern)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 08:44 AM
08-26-2003 08:44 AM
Re: $(variable#pattern)
Very interesting observation! I noticed this morning that I could not get to my profile, yet could not find any others with problems (e.g. any "J" user as has happened on other occasions). Your profile is now inaccessible too, so I suspect that you have found the reason. I have an open call with Dan and will foward this information to him with my thanks to you!
p.s. -> Pete Randall's profile cannot be accessed anymore, too, for having posted here :-))
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 08:54 AM
08-26-2003 08:54 AM
Re: $(variable#pattern)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 08:55 AM
08-26-2003 08:55 AM
Re: $(variable#pattern)
Thanks to Dan G. the profile access to me, Paul and Pete has been repaired. Paul, you were correct, the special characters in this thread's subject were responsible. Nice catch!
Dan, its always great to have you around.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2003 09:03 AM
08-26-2003 09:03 AM
Re: $(variable#pattern)
Pete
Pete