Ok I'm stuck....
I've got a variable called $DATA that basically contains:
NR==1 {print $0} NR==2 {print "inserted data" substr($0,96)}.....
What I want to do is use this as part of the awk 'command line'
ie: awk '$DATA' file_being_read.dat
No matter what I do I can't seem to make this work...Is it possible? I just want to string together the 'command line' for awk and run it...
Thanks,
Doug.