We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
for dir in $(find /directory1/tmp -type d -a -user $LOGNAME -a -name "SAS*") do echo "Remove $dir (y/n)? "; read YN [[ $YN = Y || $YN = y ]] && rm -r $dir done
I just don't want to see this prompt message, because it is not my directory and I don't have permissions to delete it anyway.
find: cannot read dir /directory1/tmp/direcory12: Permission denied
find: cannot read dir /directory1/tmp/directory12: Permission denied Remove /directory1/tmp/SASdir1 (y/n)? n Remove /directory1/tmp/SASdir2 (y/n)? y Remove /directory1/tmp/SASdir2/SASsubdir1 (y/n)? n Remove /directory1/tmp/SASdir2/SASsubdir2 (y/n)? n
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.