How will you emulate wc –l using awk?

awk ‘END {print NR} fileName’

Category: Shell Scripting Interview Questions.