#!/bin/bash # Alex Dehnert --- 2009-04-24 # Return only lists owned by first argument wantowner=$1 for list in `cat`; do hidden=$(athrun ops qy -s -f hidden glin $list) if [[ "x$hidden" == "x" ]]; then true else owner=$(athrun ops qy -s -f ace_name glin $list) towner=$(athrun ops qy -s -f ace_type glin $list) if [[ "$towner" == "LIST" ]]; then if [[ "$owner" == "$wantowner" ]]; then echo $list fi fi fi done