$ tail Apple Google ==> Apple <== FN: Jane Smith ==> Google <== FN: John Doe ORG: Google Inc. $ for f in Apple Google; do awk -f minkus.awk "$f" > "${f}.new"; done $ tail Apple.new Google.new ==> Apple.new <== FN: Jane Smith ORG: Apple ==> Google.new <== FN: John Doe ORG: Google Inc + Google