Hey everyone, I have a script that uses find to find all files within some sub-dirs and sets a extended acl on those files it finds. Find is somewhat slow and this script is taking longer then I would like, so I would like to somehow replace the following shell command with locate if possible... Code: find /usr/file_manager_2007/ -type f -prune -exec setfacl -m g:directors:rwx {} \; Can anyone help... ? Thanks.
It might not be any faster, but try this: Code: locate '/usr/file_manager_2007/*' | while read file do [ -f "$file" ] && setfacl -m g:directors:rwx "$file" done