Brent Thierens
Brent Thierens

Reputation: 451

Paths must precede expression Linux find

I have the following command:

find -xtype f -iname '*NEN*' -o '*1990*'

I get the error "find: paths must precede expression: 1990" Why is this? I have quoted the wildcard, so I don't see the error. How to fix this?

Thanks!

Upvotes: 1

Views: 2657

Answers (1)

PiedPiper
PiedPiper

Reputation: 5785

You need to repeat the -iname argument:

find -xtype f -iname '*NEN*' -o -iname '*1990*'

Upvotes: 3

Related Questions