1
# tee.awk --- tee in awk
2
# Arnold Robbins, arnold@gnu.ai.mit.edu, Public Domain
4
# Revised December 1995
8
for (i = 1; i < ARGC; i++)
11
if (ARGV[1] == "-a") {
18
print "usage: tee [-a] file ..." > "/dev/stderr"
25
# moving the if outside the loop makes it run faster