Vmcp (vm-copy) is a simple script that allows you to copy/clone a VMware virtual computer image. Just specify the source directory and the destination directory. It will first just copy the wmware directory recursively en then change the configuration option ‘displayName’ in the vmx file.
#!/bin/sh source=$1 dest=$2 echo copying virtual machine cp -rv $source $dest vmxsourcefile=`ls $source/*.vmx` vmxdestfile=`ls $dest/*.vmx` grep -v displayName $vmxsourcefile > $vmxdestfile echo displayName = \"$dest\" >> $vmxdestfile exit 0