sometimes I wish awk had a print-range operator

‘cos it gets tiring to do this:

awk -F, ‘(($13 > 202.5) && ($13 < = 247.5) && ($9 > 0.0)) {OFS=”,”; print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,($5/$9);}’ infile

Too many $$s …

Leave a Reply

Your email address will not be published. Required fields are marked *