28 Jul
2006
28 Jul
'06
09:30
On Thursday 27 July 2006 20:11, Marlier, Ian wrote:
The current directory structure is something like the following: /tmp/origin ... `cd /tmp/origin` `find . -type d -print | xargs mkdir {}`
One way is this: tar cf /tmp/foo.tar --no-recursion $(find . -type d) Now foo.tar contains the structure. Simply unpack it to your destination. If you're clever you can find a way to expand that to not use a temp tar file, but we'll leave that as an exercise for the reader :). -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts