Knowledge

Can somebody explain me the following part within a awk command:

awk '{for(i=1;i<=NF;i++) if ($i=="mm")c++}

Can somebody please explain me the part (i=1;i<=NF;i++) ????:D:D:D:D

It's a loop control fragment. it says start with i equal one and continue until i is less than or equal to the number of fields in the current input line (NF). Increment i after every execution of the command after the closing )....