Re: OFF TOPIC: directory tree script file problem

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

 



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.

-d

+( duncan brown : duncanbrown@xxxxxxxxxxxxxxxxx )+
+(  linux "just works" : www.linuxadvocate.net  )+

--------------------------------------------------
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
clones"
         - Linus Torvalds, August 1991
--------------------------------------------------




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux