But then, how exactly the '?' operator is useful for grep? I was

Suppose we want to filter file names ending
in '.jpg' and '.jpeg'. We would use this regexp:

; ls | grep '\.jpe?g$'

The 'e' is optional (zero or one 'e').

Q






Reply via email to