awk 'NR==5' file.txt

Category: Text Processing

awk 'NR==5' file.txt

Print only the 5th line

NR is awk's line counter ('Number of Records'). This prints only the 5th line.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.