iname to find names with caps in themIt shouldn't, you don't want the shell to handle the *s , you want them to be passed through to find(1).That should be *.~lock.* without the quotes
I don't understand this replyIt shouldn't, you don't want the shell to handle the *s , you want them to be passed through to find(1).
It means that if you remove the quotes, the shell will interpret the wildcard characters and expand the expression into a file list, resulting in an invalid find command.I don't understand this reply
find / -name abc* doesn't work, but find / -name 'abc*' does.Except it does work.
If the pattern does not match any existing filenames or pathnames, the pattern string shall be left unchanged.
‑name pattern in single quotes is the most reliable way.[…] I'm supposed to run this: […]find /path/to/files -name '.~lock.*'
That's the worst part, when it fails it may well find results, but not all that it should.I run find without quotes all the time and it finds all instances of every file every time without issue.
find ./ -name 'foo*'
./a/foo
./a/foo123
./foo
$ find ./ -name foo*
./a/foo
./foo