Categories:

Tags:



Problem

Given a text file file.txt, print just the 10th line of the file.

Solution

The problem Tenth Line can be solved by using NR from awk.

Implementation

# Read from the file file.txt and output all valid phone numbers to stdout.

awk 'NR == 10' file.txt