用系统的查找功能查找所有一并删除。

解决方案 »

  1.   

    谢谢答复!
    我自己找到答案了
    Linux文件查找命令find详述 怎么在linux内查找东西(包括你想要的)! 
    http://blog.csdn.net/jinzhai/archive/2007/11/01/1861384.aspx
    可以参考上面的文章其实就用这个命令
    具体参考以下例子
    用grep命令在所有的普通文件中搜索hostname这个词:
    # find . -type f -print | xargs grep "hostname"
    ./httpd1.conf:# different IP addresses or hostnames and have them handled by the
    ./httpd1.conf:# VirtualHost: If you want to maintain multiple domains/hostnames
    on your用grep命令在当前目录下的所有普通文件中搜索hostnames这个词:
    # find . -name \* -type f -print | xargs grep "hostnames"
    ./httpd1.conf:# different IP addresses or hostnames and have them handled by the
    ./httpd1.conf:# VirtualHost: If you want to maintain multiple domains/hostnames
    on your注意,在上面的例子中, \用来取消find命令中的*在shell中的特殊含义。find命令配合使用exec和xargs可以使用户对所匹配到的文件执行几乎所有的命令。