This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# shell script to rename a virtual machine in ESXi | |
#set -x | |
if [ $# -ne 4 ]; then | |
echo "Usage: $0 VOLNAME DIRNAME OLDNAME NEWNAME | |
where VOLNAME is the volume name, e.g. datastore1, | |
DIRNAME is the the name of the directory of the virtual machine, |