Search Results

Search: Posts Made By: Scrutinizer
876
Posted By Scrutinizer
Try this modification to your code: ...
Try this modification to your code:
INACTIVE_KERNELS=$(python -mplatform | grep -qvi red && echo "Not Red Hat Server" || rpm -qa | grep '^kernel-[0-9]' |grep -vE `uname -r` | paste -sd \; | grep ....
876
Posted By Scrutinizer
Appending this would test if the returned string...
Appending this would test if the returned string is empty, so you could try that:
| grep .


--
The return code of the earlier grep command is nixed by the successful paste command
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 10:06 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy