question--find and pipeline
I usefind . -name "*" | chmod 777
but the result is :
chmod: too few arguments
Try `chmod --help' for more information.
Why it wouldn't work?
Thank you! 为什么要用find呢,好像你是全部都改啊 应该用find -exec 吧, 为什么用管道? 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]