#/bin/bash echo "" echo "" read -p "Enter GroupWise Admin Service IP/Hostname: " IP echo "" read -p "Enter GroupWise Admin Service Port: " PORT echo "" read -p "Enter GroupWise System Administrator Name: " GWADMIN echo "" read -p "Enter GroupWise Administrator Password: " PWD echo "" read -p "Enter Internet Domain Name: " ID wget -q --no-check-certificate --user $GWADMIN --password $PWD https://$IP:$PORT/gwadmin-service/list/user.csv?attrs=name,domain,postoffice,internetDomainName wget -q --no-check-certificate --user $GWADMIN --password $PWD https://$IP:$PORT/gwadmin-service/list/resource.csv?attrs=name,domain,postoffice,internetDomainName wget -q --no-check-certificate --user $GWADMIN --password $PWD https://$IP:$PORT/gwadmin-service/list/group.csv?attrs=name,domain,postoffice,internetDomainName wget -q --no-check-certificate --user $GWADMIN --password $PWD https://$IP:$PORT/gwadmin-service/list/nickname.csv?attrs=name,domain,postoffice,internetDomainName cat user.csv?attrs=name,domain,postoffice,internetDomainName resource.csv?attrs=name,domain,postoffice,internetDomainName group.csv?attrs=name,domain,postoffice,internetDomainName nickname.csv?attrs=name,domain,postoffice,internetDomainName >> out.csv rm output.csv cat out.csv | grep -i $ID > output.csv rm user.csv?attrs=name,domain,postoffice,internetDomainName rm resource.csv?attrs=name,domain,postoffice,internetDomainName rm group.csv?attrs=name,domain,postoffice,internetDomainName rm nickname.csv?attrs=name,domain,postoffice,internetDomainName rm out.csv echo "" echo "" echo "###################################################" echo "" echo " See output.csv in the current directory" echo "" echo "###################################################" echo "" echo ""