i want to search files in public_html of all users and exclude any directories named "uploads" or "albums" (because there are many files in these), just skip them completely
now im doing something like
find /home/*/public_html -regex ".*\(php\|html\|htm\)$" -path albums -prune -o -type f -print0 | xargs -0 grep -iE 'keyword"
but it's not working to skip over albums directories
the path of albums can be in any level
like
/home/user/public_html/something/albums
or
/home/user/public_html/albums
or
/home/user/public_html/something/somethingelse/albums
thanks in advance for any answers