> Several folks have already suggested, that you just need to get rid of
> the '' quotes.  However, if some files have spaces in their file name,
> you actually do need quotes, like this.
> 
>       for i in *; do ln -s "$i" "/home/newdir/$i"; done
> 
> This makes sure that the filename $i and the new location
> /home/newdir/$i is exactly one arguement each to the ln command and not
> split on word boundaries.
> 
> Of course, some people argue, that spaces in filenames is a Bad
> Thing(tm), but I fail to see why.

Could exactly this be the reason, why spaces in filenames are considered
as a bad thing, since they easily lead into trouble?

Martin

Reply via email to