Re: Again, how to run commands to the files/directores found by "find" command?



Thank you very much. It works great. I like the way using pipe and xargs.

BTW, when I was posting, I used this command:

find -type d -name output -exec echo cp -f /fs/home/t.txt {}/.. \;

If without echo in it, the command would has worked.

BTW, the people who wrote "find" command have chosen the symbol "{}" and "\;". These symbols are very confusing. Hard to digest and hard to remember.
.