Reputation: 765
I am trying to find all files having names ending with the ~
character like this:
find /path/to/my/folder -type f -name="*~"
However, I am getting the error: find: unknown predicate '-name=*~'
Does anyone have an idea ?
Upvotes: 1
Views: 12262
Reputation: 44009
There should be a space () instead off the
=
between -name
and the "*~"
;
find /path/to/my/folder -type f -name "*~"
Read more about -name
at the Man page.
Upvotes: 5