OFF TOPIC: directory tree script file problem

duncan brown duncanbrown at
Wed May 5 12:22:10 UTC 2004

duncan brown said:
> cd /source_dir
> find . -type d | while read line
> do
>   mkdir -p /target_dir/${line}
> done

crap, i screwed up.  here's the proper mkdir line

mkdir -p "/target_dir/${line}"

the quotes are important in case there's any funky characters like spaces.


+( duncan brown : duncanbrown at )+
+(  linux "just works" :  )+

Understatement of the century:
"Hello everybody out there using minix - I'm doing
a (free) operating system (just a hobby, won't be
big and professional like gnu) for 386(486) AT
         - Linus Torvalds, August 1991

More information about the fedora-list mailing list