- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to swlist a product with specific os_relea...
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
тАО11-06-2002 05:57 AM - last edited on тАО12-16-2012 07:36 PM by Maiko-I
тАО11-06-2002 05:57 AM - last edited on тАО12-16-2012 07:36 PM by Maiko-I
How to swlist a product with specific os_release ?
Hi admins:
I have a depot (say /DEPOT/HP/products) that contains products for HP10.20, HP11 and HP11i. Now I'd like to swlist ONLY products belonging to a specific OS release, eg. all products that have the os_release attribute set to B.11.11.
After having looked at swlist(1M) manpage, I can only retrieve attribute os_release, without testing it.
If I find pattern like os_release = B.11.11, this is perfect. But when I have something like os_release=?.11.*, I cannot test it, as this is not a regexp (the question mark alone does not have the same meaning as 'dot', as interpreted by grep).
So if in a script I want to test B.11.11 against pattern ?.11.*, I don't know how to do it (echo "B.11.11" | grep "?.11.*" fails).
I could test architecture flag, but there are products delivered for B.11.00 that works for B.11.11: some products on 11i application CDs are bundled this way.
If someone could shed a light on this...
Thank you!
/Brian
P.S. This thread has been moved from HP-UX > General to HP-UX > languages - HP Forums Moderator
- Tags:
- swlist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2002 06:36 AM
тАО11-06-2002 06:36 AM
Re: How to swlist a product with specific os_release ?
Something like this?
swlist -l product|grep [ABC]\.11\.[01][01]|more
live free or die
harry
- Tags:
- grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2002 06:43 AM
тАО11-06-2002 06:43 AM
Re: How to swlist a product with specific os_release ?
Search for A-Z or a "?", e.g.
swlist -a os_release | grep [A-Z?].11.*
Rgds, Robin