Quote:
Originally Posted by druuna
Hi,
You use an OR statement for the -name options, they need to be 'grouped'. This will solve the problem:
find . \( -name "*.ai" -o -name "*.eps" \) -exec ls {} \;
The ls is for testing, change to rm when you are happy.
Hope this helps.
|
that did the trick... the confusion came because
Code:
find . -name "*.ai" -o -name "*.eps"
returns temp.ai AND temp.eps... so I thought it was logical to just add the
-exec part but it seems to be that the exec only applies to the last expression... unless we group it like you pointed out (which I was not aware that had to be done).
Thanks for the help!