On Nov 21, 7:09 ¨Âí¬ Òõâù Îå÷âåå ¼òõâùîå÷®®®Àçíáéì®ãïí¾ ÷òïôåº > awk '{if ($4~/something/) {i+=1}} END {print i}' ¨Âéìå®ôø> > That means if a line's 4th field match "something" then increase the > counter by 1. > How to write the corresponding ruby code? What is a 'field'? Whitespace delimited?