@scottalanmiller I might do that. Let's say I have a file that has the following line of text aabbcc
in a file called abc.txt
. (Using part of their example)
If I do grep .cc abc.txt
a result is returned, since I've learned that the dot stands for one character. However, if I do grep ?cc abc.txt
no results are returned. I thought the ? stands for zero or one character. If that's true, why would it not return a result?