[linux-audio-user] batch creation of symlinks

Hans hansfong at zonnet.nl
Sun Jul 9 11:16:04 EDT 2006


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!



More information about the Linux-audio-user mailing list