[linux-audio-user] batch creation of symlinks

Frank Barknecht fbar at footils.org
Sun Jul 9 18:28:07 EDT 2006


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__



More information about the Linux-audio-user mailing list