On Thursday 13 October 2005 06:04 pm, Drew Tomlinson wrote: > What I'd like to is get '-exec' to run this command: > > ln -s "/multimedia/Pictures/2005 Kimberly & Rich/IMG_1210.JPG" "2005 > Kimberly & Rich/IMG_1210.JPG"
The easiest way I've found is to simply change into /multimedia/Pictures before running find, then refer "ln" back to your original directory. Say that you want the links to be made inside /home/drew . Instead of running find from their, do: $ cd /multimedia/Pictures $ find -iname '*.jpg' -exec ln -s {} /home/drew There - you've removed any need for string manipulation with a simple cd. -- Kirk Strauser
pgphjbvRhfxKN.pgp
Description: PGP signature