- Increase transparency
- Onboard new hires faster
- Access from mobile/offline
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
|Linux: disable vim auto-comment||7||63|
|Remote install of MSI file||4||34|
|inotifywait on remote folder with local mount point||7||39|
|Windows 2012 Script / Batch to delete 1 year old files EXCEPT FOR files within a directory||11||25|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
18 Experts available now in Live!