atom_jelly
asked on
linux if statement
trying to understand how to put together an if statement that will
first check if the rpm finds any "release"
if not "redhat-release" then output what it found
and echo that and end the if statment
what I have is
if ! rpm -qa | grep "release"
thanks.
first check if the rpm finds any "release"
if not "redhat-release" then output what it found
and echo that and end the if statment
what I have is
if ! rpm -qa | grep "release"
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.
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.
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.
ASKER