| First off, if you give tail a glob, it's going to print out (some portion of) the contents of each file, all to the same output. Not useful. Second, if you do "something filename > filename", the first thing sh does will be to open filename for writing, destroying its contents before "something" can read it. Not useful either.
for x in *.tec ; do
tail -n +3 $x > tmpfile
mv tmpfile $x
done
(this has a few issues with filenames with whitespace, but so does your original so I don't feel bad. We'll just assume that's not a problem ;) |