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:15] – [References] admin | number_of_matches_per_file [2021/11/04 14:59] (current) – [Solution using grep and awk] admin | ||
---|---|---|---|
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.1635714954.txt.gz · Last modified: 2021/10/31 21:15 by admin