fm867 发表于 2006-1-4 11:56:22

question--find and pipeline

I use
find . -name "*" | chmod 777

but the result is :
chmod: too few arguments
Try `chmod --help' for more information.

Why it wouldn't work?
Thank you!

zhy2111314 发表于 2006-1-4 14:35:13

为什么要用find呢,好像你是全部都改啊

daniel_zhy 发表于 2006-1-4 15:36:20

应该用find -exec 吧, 为什么用管道?

fm867 发表于 2006-1-4 17:36:12

I have tried that
1)chmod -R 777 *
2)find . -name * -exec chmod 777 {} \;
this two command can change all the files in the current directory.
but what about useing 管道 to transfer the search result to chmod command?
页: [1]
查看完整版本: question--find and pipeline