[EMAIL PROTECTED] wrote on 16/12/2004 01:21:03 PM: > Can someone explain this? > > > > [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* > -print %p > find: paths must precede expression > Usage: find [path...] [expression] > [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* > -print `%p' > > > [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* > -print `%p' \; > > > [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* > -print `%p' ; > > > [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* > -print '%p' ; > find: paths must precede expression > Usage: find [path...] [expression] > [EMAIL PROTECTED]:/spam-hold/spam-hold$ find /spam -name smtpdAB* > -print '%p' \; > find: paths must precede expression > Usage: find [path...] [expression] > [EMAIL PROTECTED]:/spam-hold/spam-hold$ >
try -printf %p -print has no options I would also suggest escaping the '*' so bash doesn't try to expand it. Regards, Scott -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html