beatbreaker
beatbreaker

Reputation: 349

grep for text with wild card in between

I would like to grep something like ==> *.sh <==. But it doesn't work, I can grep everything up to .sh <== but not get the wild card to work.

What's the trick here?

Upvotes: 23

Views: 64252

Answers (1)

sayap
sayap

Reputation: 6275

You need to grep for something like "==> .*\.sh <=="

The .* part matches any character for any length, the \. part matches a dot.

Upvotes: 38

Related Questions