29
rated 0 times
[
29]
[
0]
/ answers: 1 / hits: 25793
/ 3 Years ago, mon, june 28, 2021, 6:15:30
I tried to recursively search a pattern in all the .c files in the following way
> grep -lr search-pattern *.c
But got this as the output
> grep: *.c: No such file or directory
When I use this:
> grep -lr search-pattern *
I get plenty of . c files in the directories with the pattern.
What is wrong with the earlier expression?
More From » grep