mirror of https://github.com/cheat/cheat.git
[Change] grep Add find in files
This commit is contained in:
parent
ad744eea9f
commit
f42d28088c
|
@ -9,3 +9,7 @@ grep -R pattern folder
|
||||||
|
|
||||||
# Getting pattern from file (one by line):
|
# Getting pattern from file (one by line):
|
||||||
grep -f pattern_file file
|
grep -f pattern_file file
|
||||||
|
|
||||||
|
# Find all files who contain {pattern} in the directory {directory}.
|
||||||
|
# This will show: "file:line my research"
|
||||||
|
grep -rnw 'directory' -e "pattern"
|
||||||
|
|
Loading…
Reference in New Issue