Thursday, February 17, 2011

UNIX - Copying folder structure without copying files

The following command would help to copy folder structure without copying its contents (i.e. files).

find <src_dir> -type d -print0  | cpio --null -pvd <target_path>

Regards,
Sathish Manthani

No comments:

Post a Comment