Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 658

Comment by Kamil Maciorowski on How to count word frequency with grep (or anything else) with an ignore list of words?

$
0
0
grep -iE '\bperson(s|’s)?\b' sample.txt. Add -o and/or pipe to wc -l at will. This is not an answer because you're explicitly asking about implementing exclusions according to the list and the command does not do this.

Viewing all articles
Browse latest Browse all 658

Trending Articles