When I need to suppress some kind of output e.g.
foo | grep -v bar
But foo gives sometimes only:
bar bar bar...
grep will return -1. How do I transform the exit code 1 to 0?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community