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

Sample Search Queries

Many Paths. Follow Yours.