This tip works on both Linux and macOS.
grep -lr "my text" *.txt
This command:
- list files with the pattern
my text - recursively
- in all
*.txtfiles
This tip works on both Linux and macOS.
grep -lr "my text" *.txt
This command:
my text
*.txt files
Top comments (0)