hi!,
I'm trying to copy/recreate the directory structure but not including it's contents I'm trying this, but it's getting an error because of the '.' how can I remove it?
Code:
newton@gollum:~/tuaman> find -type d -exec mkdir /apps/tuaman2/\{\} \; mkdir: cannot create directory `/apps/tuaman2/.': No such file or directory
mkdir: cannot create directory `/apps/tuaman2/./dir1': No such file or directory
mkdir: cannot create directory `/apps/tuaman2/./dir1/dir3': No such file or directory
mkdir: cannot create directory `/apps/tuaman2/./dir2': No such file or directory
newton@gollum:~/tuaman> find -type d
I do have /apps/tuaman2/, I guess the '.' is causing the error.
Thanks!
Regards,
Rhani