A script to determine the WebSphere instance’s Cell Name
#!/bin/bash if [[ -z "${1}" ]]; then echo "Please pass in a full path to the profile's location!" echo "e.g. getCellName.sh <path_to_profile>" exit 1 fi theFile=${1}/bin/setupCmdLine.sh cat ${theFile} | grep -oP '(?<=WAS_CELL=)[^ ]*'