query: how would i use rm to delete all files without certain wildcard?
positive_passages.docid: 2354
positive_passages.text: Delete all files except files with the extension pdf in a directory
negative_passages.docid: 53375
negative_passages.text: Trying to delete directory with "rm -rf", but get message that it's not empty
negative_passages.docid: 72522
negative_passages.text: Delete all files in a folder except the last (most recent) 20
negative_passages.docid: 155020
negative_passages.text: How do I delete a folder but not the contents?
negative_passages.docid: 139004
negative_passages.text: How to get rid of "No match found" when running "rm *"
negative_passages.docid: 29053
negative_passages.text: Delete all but the most recent X files in bash
negative_passages.docid: 122860
negative_passages.text: How do you do a dry run of rm to see what files will be deleted?
negative_passages.docid: 97363
negative_passages.text: How do I delete all but 10 newest files in Linux?
negative_passages.docid: 108641
negative_passages.text: Command for deleting temporary files ending with ~
negative_passages.docid: 64283
negative_passages.text: Delete all but the most recent n file for each group of files that share the same prefix in a directory
negative_passages.docid: 18309
negative_passages.text: Delete all files in directories except those whose path are listed in a file
negative_passages.docid: 152468
negative_passages.text: How can I exclude directories from grep -R?
negative_passages.docid: 28655
negative_passages.text: Completely delete a folder in Windows using command line
negative_passages.docid: 36006
negative_passages.text: remove files when name does NOT contain some words
negative_passages.docid: 42991
negative_passages.text: Why is the wild card character * so different between commands zip and rm?
negative_passages.docid: 105143
negative_passages.text: How to remove only the content of directories?
negative_passages.docid: 67233
negative_passages.text: Remove all files/directories except for one file