If you properly used such pattern, the shell would pass all matching paths to grep (e.g. This feature is called "globstar" and one may need to explicitly enable it in a shell. In some shells you can use a glob that can match files in subdirectories. foo.c is a file of the type directory then -r will make grep descend into the directory but grep will read all files in the directory (it is still not aware of *.c you typed). If foo.c and bar.c are regular files then -r is irrelevant. ![]() It sees -r, iflag, bar.c, foo.c as its arguments.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |