Article 4SBDQ "find: unknown predicate" with folder names

"find: unknown predicate" with folder names

by
smartdba
from LinuxQuestions.org on (#4SBDQ)
Hi

I have several folders with starting with a "-" in the folder names. They work with most commands, but the find command fails with and unknown predicate. I tried single quotes, double quotes, e\ etc.. but no luck.

Folder example

drwxrwxr-x 2 user group 6 Oct 11 10:33 - test

[user@machine ~]$ find "- test" -name "*.jpeg"
find: unknown predicate `- test'

[user@machine ~]$ find '- test' -name "*.jpeg"
find: unknown predicate `- test'

Please help!

Joelatest?d=yIl2AUoC8zA latest?i=FaPYaBmjERE:Ocd4VfVLUIY:F7zBnMy latest?i=FaPYaBmjERE:Ocd4VfVLUIY:V_sGLiP latest?d=qj6IDK7rITs latest?i=FaPYaBmjERE:Ocd4VfVLUIY:gIN9vFwFaPYaBmjERE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments