Selectorctl find user PHP version:
for user in $(\ls -A /var/cpanel/users) ; do version=$(selectorctl -c -u $user | awk '{print $1}') ; echo $user $version ; done
Selectorctl find user PHP version:
for user in $(\ls -A /var/cpanel/users) ; do version=$(selectorctl -c -u $user | awk '{print $1}') ; echo $user $version ; done