What is the use of FNR?



What is the use of FNR?..

Answer / Arya Vardhman Priyadrshi

FNR (File Number Record) in Awk represents the number of records read from the current input file. It can be used for conditional statements to perform specific actions depending on the total number of records in a file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Awk Interview Questions

What is the use of string function substr(string,position) in AWK?

1 Answers  


What is the use of sequence f?

1 Answers  


What is the use of string function substr(string,position,max) in AWK?

1 Answers  


What is the use of string function gensub(r,s,h [,t])?

1 Answers  


What is the use of string function sub(regex,replacement)?

1 Answers  


What is the use of sequence <Any other character> ?

1 Answers  


What is the use of format specifier %o ?

1 Answers  


What is the use of string function strtonum(string)?

1 Answers  


Write a command to find the sum of bytes (size of file) of all files in a directory?

1 Answers  


What is the Basic Structure of AWK program?

1 Answers  


What is the use of numeric function log ?

1 Answers  


What is OFS in AWK?

1 Answers  


Categories