tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Ignoring subdirectories in daily's find_core
Yet another /etc/daily thing:
On a file server, I would like to run find_core, yet I don't want
to descend into people's home directories.
Would something like
ignpaths=""
if [ -n "$find_core_ignore_paths" ]; then
ignpaths="$(printf " -o -path %s" $find_core_ignore_paths)"
ignpaths="\\( ${ignpaths# -o } \\) -prune -o"
else
ignpaths=""
fi
and then adding $ignpaths to the find command be acceptable?
Home |
Main Index |
Thread Index |
Old Index