Find all files in the current working directory with a name ending in ".txt" and execute the awk command on each of them. The awk command will print the first field of each line that either is the first line or contains the string "foo".
find "$PWD" -iname '*.txt' -exec awk -F'\t' 'NR==1||/foo/{print $1}' {} \;