Score:3

Find and delete files starting or ending with certain sign

gq flag

Using find, I need to find and delete files that start or end with # and files that end with~ but I can't find any way. I tried:

find-name "#*#" -type f -delete

But couldn't make it fully match the patterns I want.

Score:2
jp flag

Actually, the key thing that you need to know to solve that question is sort of a hidden feature for new users reading man find ... That feature is you can actually specify more than one -name "..." pattern if the extra patterns are added with -o -name "..." -o -name "..." ... ... Knowing that, you can now use it e.g. like so:

find -type f -name "*#" -o -name "#*" -o -name "*~" -delete
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.