Originally posted by Demonbane
change /my/directory/ to the directory you want to copy
for foo in $(find /my/directory/ -type d);do mkdir .$foo;done
quick Q. this doesn't seem to work for me when I type it on my command line. is there something I'm missing. it tells me "Illegal variable name" i changed foo to bar, but that gave me the same result.
I'm using tcsh. should I try this in another shell?