Chinaunix
标题:
搞不懂
[打印本页]
作者:
flowingtree
时间:
2006-08-28 16:06
标题:
搞不懂
[flowing@sata public_html]$ cat a
CREDITS
DEVELOPERS
FAQ
HISTORY
INSTALL
LICENSE
TODO
TRANSLATORS
classes
conf
help
images
indexes.js
lang
libraries
links.js
robots.txt
sql
themes
xloadtree
我用
rm -rf `cat a`
能把这些文件删除
cat a | -exec rm -rf {} \;
就不能了,这是为什么呢?
[
本帖最后由 flowingtree 于 2006-8-29 08:35 编辑
]
作者:
4Aiur
时间:
2006-08-28 16:15
cat a | xargs rm -rf
作者:
webyuhang
时间:
2006-08-29 09:01
while read line;do
rm -rf $line
done <file
作者:
寂寞烈火
时间:
2006-08-29 11:20
-exec rm -rf {} \;
复制代码
是find的专用格式
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2