reseller="iitjaipu" for user in $(whmapi1 list_users_for_reseller reseller=$reseller | grep -oP '(?<=user: ).*'); do whmapi1 accountsummary user=$user | grep -i 'domain:' done