awk ' BEGIN { ref='$1'+0 } ( $2 == ref ) { printf "\t%s\n", $0 net++ } END { printf "\n\t Stars selected: %3d\n\n", net } '