Categories
Linux Mastering Development

How not to show the command response but only display conditional response

ping -c 5 test && echo “success” || echo “failure”

output: success / failure

Leave a Reply

Your email address will not be published. Required fields are marked *