{ "data": { "question": { "questionId": "195", "questionFrontendId": "195", "boundTopicId": null, "title": "Tenth Line", "titleSlug": "tenth-line", "content": "
Given a text file file.txt
, print just the 10th line of the file.
Example:
\r\n\r\nAssume that file.txt
has the following content:
\r\nLine 1\r\nLine 2\r\nLine 3\r\nLine 4\r\nLine 5\r\nLine 6\r\nLine 7\r\nLine 8\r\nLine 9\r\nLine 10\r\n\r\n\r\n
Your script should output the tenth line, which is:
\r\n\r\n\r\nLine 10\r\n\r\n\r\n
Bash 4.3.30
.