Please Consider @Wiktor's answer, this answers purely focuses on the find command. Shell Metacharacters and Filename Substitution . ), and once the file is found the sh script is executed. I can change it with mv command but there are lots of files. Only one character from the set in the brackets is matched for a filename. bash shell example using the unicode "fractional slash" U+2044 bash# >test$'\xe2\x88\x95'file bash# ls --show-control-chars testfile bash# ls test?? New external SSD acting up, no eject option. The folder name in question has a format of "Filename?". -name '?*. A short file name must always be provided because the SHORTFILENAMES property may be set or the target volume for the . How to check if an SSM2220 IC is authentic and not fake? will match cat and cot but not coat or ct. For what it's worth, this is a very common convention for filename matching, and can be used in a variety of command line interface contexts, even Windows' cmd. To make it easier to use and not have to copy-paste it or type Can dialogue be put in the same paragraph as action text? Can a rotating object accelerate by changing shape? *' will match "some(one)thing" then "anything" "dot" "anything". By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Improve this answer. question mark to name files on Windows, you are welcome to try this Rename a question mark (?) By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. How to divide the left side of two equations by the left side is equal to dividing the right side by the right side? 4. (See, Your command contains special characters (. Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. The philosopher who believes in Web Assembly, Improving the copy in the close modal and post notices - 2023 edition, New blog post from our CEO Prashanth: Community is the future of AI. I tried this command: But it does not work; nothing is replaced/removed, it shows this error: I have these type of filenames in different directories, so I tried find command. In Powershell, how can I replace a string that contains a question mark? Why does $