Re: batch creation of symlinks

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

 



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!

[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