On 2002-04-29 02:34:05, jeff wrote: > help a scripting dummy here... > > made a /usr/local/share/icons dir. would like to > have symlinks to _all_ the xpm, gif, tiff, and jpg > icons on my drive...available for use as icons in > windowmaker... > > am i making sense?
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 assumes that all graphics file names are unique, that you have read permission for the files in question and that your non-graphics files does not have the above mentioned extensions (otherwise you will need to use /usr/bin/file as a fall-back). /Allan -- Allan Wind P.O. Box 2022 Woburn, MA 01888-0022 USA
pgp7f3My5hO01.pgp
Description: PGP signature