Re: [linux-audio-user] batch creation of symlinks

From: Frank Barknecht <fbar@email-addr-hidden>
Date: Sun Jul 09 2006 - 12:17:21 EEST

Hallo,
Hans hat gesagt: // Hans wrote:

> in the subdir, or
>
> for i in ./dir1/*.mp3; do ln -s $i $i;done

Almost, but you're trying to link a file on itself here ("$i->$i").
Use this instead:

$ for i in ./dir1/*.mp3; do ln -s $i . ;done

or even more general:

$ for i in */* ; do ln -s $i . ; done

Ciao

-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
Received on Sun Jul 9 16:15:03 2006

This archive was generated by hypermail 2.1.8 : Sun Jul 09 2006 - 16:15:03 EEST