Monday, July 6, 2009

How to copy directories structure

cd olddir
find . -type d > /tmp/dirlist
cd newdir
for i in `cat /tmp/dirlist` ; do mkdir -p $i ; done

very simply :)

3 comments:

  1. i use this....
    rsync -a -f"+ */" -f"- *" source/ destination/

    ReplyDelete
  2. Merit Casino - Xn Gaming
    Welcome to the Merit Casino website, we offer you all of 메리트 카지노 쿠폰 the benefits that you will find at the official website of Merit Casino, and 샌즈카지노 of course, it's หาเงินออนไลน์ all here.

    ReplyDelete