in reply to shell problem

You could try making the command:

`ksh -c "tar -cf - $_ | (cd $new_disk; tar -xBpf -)"`

most shells will take '-c' and use whatever is in the arg as the command they should execute. the shell will lauch, execute what's in '-c' and exit. try "man ksh" or whatever shell you'd like to use to be sure it takes the '-c' arg.

10 to 1 some other monk can give you a better perl solution :) but this answers the question ;)

-- I'm a solipsist, and so is everyone else. (think about it)