find -type f -exec echo "=========================" "{}" \; -exec dpkg -c
"{}" \; | less +/somefile

在07-3-3,Vern Sun <[EMAIL PROTECTED]> 写道:

因为我要找的不是本机上安装的deb包,所以dpkg -S是不行的。

假设在/sun目录下多个deb包,其中一个含有文件somefile,我用
find -type f -exec dpkg -c "{}" \; | less +/somefile,能找到该文件。但是dpkg
-c不会列出包名,所以我还是不知道somefile属于哪个包?

不用脚本能否实现,如果要写脚本,应该怎样写?谢谢!




--
Vern

回复