#softwareGripe #grep #counterintuitive

How is it that grep -r utf-8 * is a valid search, while grep -r utf-8 *.rb instantly returns

grep: *.rb: No such file or directory

?

It can't mean "sorry, I looked and didn't find any *.rb files with that content" because it returns instantly; it's not even looking.

...and for the record, yes, I also tried ".rb", with the same result.

Follow

@woozle because the shell is doing that expansion for you. Put it in single quotes, like '*.rb'

Sign in to participate in the conversation
meow.social

This instance is focused around the furry community, and is open to anyone interested in it. It's open to all fluffies and scalies ! ⚠️ We do not accept any form of sponsored content on our site. If you like meow, consider donating something via paypal or Liberapay