On  0, jeff <[EMAIL PROTECTED]> wrote:
> Allan Wind wrote:
> 
> > cd /usr/local/share/icons; find / \( -name \*.gif -o name \*.jpeg -o -name 
> > \*.jpg -o -name \*.tif -o -name \*.tiff \) -a -type f | xargs -i ln -s \{\} 
> > .
> 
> 
> this looks like it should indeed work...but when i
> try it, i get:
> 
> find: paths must precede expression
> Usage: find [path...] [expression]

You did put the missing '-' into '-name \*.jpeg', didn't you?  Other
than that it looks OK, although for preference I would do it like this:

find / \( -name \*.gif -o -name \*.jpeg -o -name \*.jpg -o -name \*.tif
-o -name \*.tiff \) -a -type f -exec ln -s {} . \;

Tom
-- 
Tom Cook
Information Technology Services, The University of Adelaide

"That you're not paranoid does not mean they're not out to get you."
        - Robert Waldner

Get my GPG public key: 
https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au

Attachment: pgpR2MihR5kGD.pgp
Description: PGP signature

Reply via email to