Re: [linux-audio-user] batch creation of symlinks

From: Frank Barknecht <fbar@email-addr-hidden>
Date: Mon Jul 10 2006 - 01:28:07 EEST

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__
Received on Mon Jul 10 08:15:01 2006

This archive was generated by hypermail 2.1.8 : Mon Jul 10 2006 - 08:15:02 EEST