In the last episode (Dec 21), Ashok Shrestha said:
> Do you know how to copy just a directory structure (not the files
> inside it)?

One way would be using mtree: 
"mtree -d -c -p /path | mtree -U -p /otherpath".  

You could also do it with find and tar:
"cd /path ; find . -type d | tar Tcfn - - | ( cd /otherpath ; tar xf - )"

-- 
        Dan Nelson
        [EMAIL PROTECTED]
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to