rm myf && {
echo "File is removed successfully"
echo "another command executed when rm was successful"
} || {
echo "File is not removed"
echo "another command executed when rm was NOT successful"
}
ou melhor
if rm myf ; then
echo "File is removed successfully"
echo "another command executed when rm was successful"
else
echo "File is not removed"
echo "another command executed when rm was NOT successful"
fi