"unknown primary or operator" -Terminal window

Hello,

every time when I upload music to my USB drive, and then open it in my car, appear these "._files" (ghost files). So I find a way to remove them with these commands in Terminal window: find /Volumes/MUSIC -name '._*' -type f​ to find them and then find /Volumes/MUSIC -name '._*' -type f -delete​ to delete them. Everything works just great until I updated my Mac to Catalina 10.15.6. Now I'm able only to find these "ghost files" in Terminal, but when I want to delete them (with the command that worked fine before) Terminal says: unknown primary or operator.

What should I do?


MacBook Pro 13″, macOS 10.15

Posted on Sep 27, 2020 2:10 AM

Reply

Similar questions

8 replies

Sep 27, 2020 6:15 AM in response to yoana_kornel

I doubt there is anyone among us who has not had a copy/paste error caused by selection of one less, or one more character than was syntactically correct for a successful copy/paste operation.


Here is an example where Find returns "unknown primary or operator." I suggest you replace the delete operator with the suggestion in that stackoverflow post.


Personally, i use the dot_clean command syntax.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"unknown primary or operator" -Terminal window

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.