query: Find and delete files, whilst keeping any matching files if in a specific directory
positive_passages.docid: 146757
positive_passages.text: Delete all files except in a certain subdirectory with find
negative_passages.docid: 141213
negative_passages.text: How do I check if a filename matches a wildcard pattern
negative_passages.docid: 28597
negative_passages.text: Checking from shell script if a directory contains files
negative_passages.docid: 39898
negative_passages.text: find: combining -path and -prune to exclude files and directories
negative_passages.docid: 40571
negative_passages.text: How to delete all files in a directory except some?
negative_passages.docid: 127510
negative_passages.text: Portable way to check if directory exists [Windows/Linux, C]
negative_passages.docid: 157119
negative_passages.text: Check if a folder has a certain type of file present
negative_passages.docid: 84484
negative_passages.text: Finding and removing duplicate files in osx with a script
negative_passages.docid: 118843
negative_passages.text: How to delete directories based on `find` output?
negative_passages.docid: 39834
negative_passages.text: Check whether files in a file list exist in a certain directory
negative_passages.docid: 18865
negative_passages.text: How do I exclude a directory by name using find?
negative_passages.docid: 67233
negative_passages.text: Remove all files/directories except for one file
negative_passages.docid: 74026
negative_passages.text: How can I delete all folders of a specific name without deleting Contents in it?
negative_passages.docid: 21398
negative_passages.text: Excluding certain files and directories when deleting files
negative_passages.docid: 5017
negative_passages.text: Recursively delete all files with a given extension
negative_passages.docid: 59723
negative_passages.text: How do I remove all sub-directories from within a directory?
negative_passages.docid: 46239
negative_passages.text: Test if there are files matching a pattern in order to execute a script