peledc
asked on
Bash string manipulation
On RHEL, version 5.4 and above,
I would like to extract and match the OCFS2 version with the Linux version:
#uname -r
retruns: 2.6.18-371.3.1.el5PAE
# rpm -qa | grep ocfs
returns two rows:
ocfs2-2.6.18-238.el5PAE-1. 4.7-1.el5
ocfs2-tools-1.4.4-1.el5
I need to find if the versions match:
2.6.18-371.3.1.el5PAE with 2.6.18-238.el5PAE (This is from rpm cmd between the two "-")
Thanks
I would like to extract and match the OCFS2 version with the Linux version:
#uname -r
retruns: 2.6.18-371.3.1.el5PAE
# rpm -qa | grep ocfs
returns two rows:
ocfs2-2.6.18-238.el5PAE-1.
ocfs2-tools-1.4.4-1.el5
I need to find if the versions match:
2.6.18-371.3.1.el5PAE with 2.6.18-238.el5PAE (This is from rpm cmd between the two "-")
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, I didn't have ocfs2-tools installed anywhere to test with. Nice work getting what you needed though!
ASKER
My comment best fit this scenario
Thanks for the help.
Thanks for the help.