cat tab.list | while read s t; do db2 connect to dbname; db2 -v "grant select on $s.$t to group db2group"; db2 connect reset; done >db2group_grants.out
for TABNAME in `awk ‘{print $1″.”$2}’ tab.list`; do db2 -v “grant select on table $TABNAME to group db2group”