Hi,
My code is like this
if swlist -a revision 2>/dev/null | grep ABC 2>/dev/null
then
echo "Found Above mentioned ABC Version, please remove it first..."
fi
This is displaying the result to the screen.
i want to first suppress that and for that i wrote the below code
if swlist -a revision 2>/dev/null | grep ABC 2>/dev/null > /dev/null
then
$temp=swlist -a revision 2>/dev/null | grep ABC 2>/dev/null
echo "Found $temp ABC Version, please remove it first..."
fi
But it is not working .... can any one help me???
Thanks