由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to find "exact" word in a file.
相关主题
如何删除一组文件或给一组文件更名?如何把一个目录下的文件名全部改成小写?
how to get part of a big text file?how to contral tar-ed file size?
一个Shell问题HELP.
a question about "find"?[转载] How to list the files with specific permission?
my script Re: how would you do this?shell programming problems
group permission How do i get a list of all computers?
怎样用mail把某一文本文件发送给一个email地址?replace a string in all files under a directory?
what is the problem? what can I do?How to find a file in the deep children directory?
相关话题的讨论汇总
话题: word话题: file话题: find话题: exact话题: do
进入Unix版参与讨论
1 (共1页)
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

1 (共1页)
进入Unix版参与讨论
相关主题
How to find a file in the deep children directory?my script Re: how would you do this?
Re: 如何用grep查找子目录下的文件?--stop!group permission
Re: 如何用grep查找子目录下的文件?怎样用mail把某一文本文件发送给一个email地址?
sed? awk? or mak a program?what is the problem? what can I do?
如何删除一组文件或给一组文件更名?如何把一个目录下的文件名全部改成小写?
how to get part of a big text file?how to contral tar-ed file size?
一个Shell问题HELP.
a question about "find"?[转载] How to list the files with specific permission?
相关话题的讨论汇总
话题: word话题: file话题: find话题: exact话题: do