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

From: Hans <hansfong@email-addr-hidden>
Date: Sun Jul 09 2006 - 18:16:04 EEST

Frank Barknecht wrote:

>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
>
>
This I don't understand: so what does the "." stand for?

Hans

P.S. Almost forgot to thank you. This one works and is short too!
Received on Sun Jul 9 20:15:02 2006

This archive was generated by hypermail 2.1.8 : Sun Jul 09 2006 - 20:15:02 EEST