find / -name *.test | chmod 751
What I am trying to do is take the output of
find / -name *.test and change the permissions on each file like a find / -name *.test | chmod 751 but that doesn't work. so does anyone know how to make it work? P.S. Each .test file is in a different directory and subfolder |
You would do something like this
Code:
#find / -name "*.test" -exec chmod 751 {} \; |
Just for the sake of options, here's another way:
Code:
for i in `find / -name *.test`; do chmod 751 $i;done |
Thanks for the help
this worked find / -name \*.test -exec chmod 755 {} \; |
All times are GMT -5. The time now is 06:45 PM. |