On Fri, 18 Jun 2004 10:45:01 -0500, troehr at nj-onramp.com <troehr at nj-onramp.com> wrote: > > Or to avoid awk, Or use awk for everything: for f in `ls -1 *.txt`; do awk --assign infile=$f '/[0-9]+?-[A-F]/ {print $0 "," infile}' $f done -- mikeh