if type fortune &> /dev/null; then fortune echo fi