grep and path name matching.

view full story

http://www.linuxquestions.org – Linux kernel 2.6, Slackware 12.0. Hi: Question: I do grep -r string_1 .*txt. Is the path first expanded by the shell? If not, then say, ./elem1/elem2/file1.txt would be search for string_1. However, it is not in my system. Note: '.' (period) in .*txt is any char. '.' in ./elem1/elem2/file1.txt is current dir. Now, .*txt should be, as a regexp, zero or more occurrences of any char followed by txt, that is, any string with txt as a suffix. Thanks. (HowTos)