How do I find files that have ~ * and other special characters in the name?e.g.find . -name *\*should match any characters and then *, but it matches nothing; how can I get the command to correctly match the files?
Finding special characters in name
find;regular expression
Implementations of find vary, but they should all handle character classes in wildcards (POSIX.2, section 3.13):find . -name '*[~*]*'If newline is among your special characters, you may need to work out how to get your shell to pass it to find.  In Bash, you can usefind . -name $'*[\t \n]*'to show files containing whitespace, for example.  A simpler method, if supported, is to use a character class:find . -name '*[[:space:]]*'