Here's a #bash pop quiz for you.

What happens if you try to evaluate some numbers from a pipe with grep like this:

echo "30" | grep '[0-100]'

Arbitrary bonus points if you can say *why*.

Follow

@vwbusguy grep will match because string "30\n" contains '0'.

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.