Thanks! I think, though, that this will result in too long directory names, which will spoil beadm list output; beadm alone is probably a better template. Also, you shouldn't hardcode /tmp, but let the user set his TMPDIR, so consider using the -t option for mktemp.