Ahmed Hussein
Ahmed Hussein

Reputation: 765

Unknown predicate error in "find" command

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

Answers (1)

0stone0
0stone0

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

Related Questions