number_of_matches_per_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
number_of_matches_per_file [2021/10/31 21:13] – [Task] admin | number_of_matches_per_file [2021/11/04 14:59] (current) – [Solution using grep and awk] admin | ||
---|---|---|---|
Line 64: | Line 64: | ||
==== References ==== | ==== References ==== | ||
- | * https:// | + | * https:// |
==== tags ==== | ==== tags ==== | ||
Line 71: | Line 71: | ||
===== Solution using grep and awk ===== | ===== Solution using grep and awk ===== | ||
< | < | ||
- | grep -ro "came across" | + | grep -ro foo * | awk -F':' |
</ | </ | ||
Line 104: | Line 104: | ||
</ | </ | ||
- | Note: You have to use "grep -o" | + | Note: You have to use "grep -o" |
< | < |
number_of_matches_per_file.1635714830.txt.gz · Last modified: 2021/10/31 21:13 by admin