I'm not sure if I don't fully understand
grep or if regexes are the source of my problem, so I have two questions. I have a simple test file named
test.txt with the following contents:
$ cat test.txt
When I run
grep in a directory containing only the above test file with the following command, it returns with no matches:
$ grep -ir "Settings*xml"
1) Why is the wildcard
* not catching the period?
And when I run
grep as such:
$ grep -ir "Settings*.xml"
the only difference being the period after the wildcard, the results are:
2) Why is
grep not finding the other two matches?