Subscribedirname will print out just the directory name of whatever path you give it.find $nas_dir \( \( -type f \( \(welcome to find/shell quoting hell, and I hope this doesn't get mangled in posting...)
-name "a filename to delete" -o \
-name "another filename to delete" -o \
-name "delete this filename too" \
\) \) -o \( -type d \( \
-name "directory name" -o \
-name "another directory name" -o \
-name "directory blah" \
\) \) \) -print0 | xargs -0 rm -rf
You are not logged in, either login or create an account to post comments
posted by aeighty at 10:13 PM on June 2