[olug] bash help (awk/sed)

Mike Hostetler hostetlerm at gmail.com
Fri Jun 18 16:42:54 UTC 2004


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


More information about the OLUG mailing list