echo "Usage: sudo find.sh [options] [path...] [expression]"
echo "Pass safe parameters to 'find' to be executed as root"
echo "Note, unsafe Actions in 'find' such as -remove and -exec are not passed"
echo "Special characters like double or single quotes might not work"
# sed is inefficient compared to shell Parameter Expansion, but simple and portable
PASSPARS=`echo $@ | sed -e 's/-remove[ $]//g'`
Open in new window
IT issues often require a personalized solution. With Ask the Experts™, submit your questions to our certified professionals and receive unlimited, customized solutions that work for you.