Should be fairly simple to answer:

Let's say I wanted to execute a command determined by the output of a previous one in Bash:

curl http://website.com 2> /dev/null | grep -i "test" --count | <MY-COMMAND>

What I need: <MY-COMMAND> should only execute if grep had some matches (at least 1).

How can I achieve that?

Also, please feel free to add matching tags, I couldn't come up with any