I want to compare lines in a file from the fourth word till the end. I dont know how to find out how many words are in a line that is read by AWK or how fill a variable with $4..$20 (word 4 till 20)<br>Any advice?
Words number indicated by special variable NF.<br>So,you can know the how many words in a line.<br>e.g.<br> for(i=4;i<=NF;i++){<br> if($i==....
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.