a**n 发帖数: 313 | 1 How to find how many times one word appears in a file?
I used:
grep 'do' filename
will give include the words like dobule, ado, *do* ...
what I want is only the word 'do' appearance times...
Thanks | l******t 发帖数: 108 | 2 use space?
grep ' do ' * | w**n 发帖数: 88 | 3 grep -w 'do' filename
【在 a**n 的大作中提到】 : How to find how many times one word appears in a file? : I used: : grep 'do' filename : will give include the words like dobule, ado, *do* ... : what I want is only the word 'do' appearance times... : Thanks
|
|