I need to list files and dirs with names starting with jre (small and capital letters are allowed).
When I execute:
ls | grep jre
...it greps just low capital letters and gives output with jre not only in start position. Actually I have feeling that grep is not a good choice at all in this case.
How to solve my problem?