Hacker News new | ask | show | jobs
by teddyh 3325 days ago
Alternatively and shorter:

    echo foo | grep bar || :