Hello,
my english seems to be bad (i'm french), so i don't understand the $NR var.
NR: The number of fields in the current record
echo "test toto tata" |awk '{print "number of fields: "$NR}'
number of fields: test
there is 3 fields, the results would be '3', no ?
please, help me to understand.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.