Re: batch creation of symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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__

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux