#!/bin/sh if test "x$1" = "x"; then echo "usage: $0 TREE" exit 1 fi awk -F'\t' "(\$3 == \"$1\") { print \$1 }" Next/control.txt