Tenth Line Problem & Solution

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

See the tenth line problem on LeetCode.

Bash Solution

sed -n 10p file.txt

Are you looking for a job?