Re: batch creation of symlinks

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

 



Hallo,
Florian Paul Schmidt hat gesagt: // Florian Paul Schmidt wrote:

> > $ for i in */* ; do ln -s $i . ; done
> 
> Watch out for whitespaces though. If your filenames can contain spaces,
> it might be wise to do 
> 
> export IFS=$'\n'$'\t'
> 
> and then do your for-loop. Don't forget to change it back afterwards
> though.

Alternatively you can quote $i as in: 

$ 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