I want to find a file in an unknown directory and then chmod it. Could you help with that please? So far I wrote find . -type f -name ".pdf" chmod {};
I want to find a file in an unknown directory and then chmod it. Could you help with that please? So far I wrote find . -type f -name ".pdf" chmod {};
the man page of
find
command says that in order to execute a command (in this casechmod
) to matching file the command need to be specified using-exec
parameter