Tail of a Text File #1, is a HackerRank problem from Text Processing subdomain. In this post we will see how we can solve this challenge in Sh

Problem Description

In this challenge, we practice using the tail command to display the last lines of a text file. Display the last lines of an input file.

Input Format

A text file.


Output the last lines of the text file.

Sample Input

From fairest creatures we desire increase, That thereby beauty' ....

You can find the full details of the problem Tail of a Text File #1 at HackerRank

Solution: Please check the tail-1.sh snippet for the solution.

This solution originally posted at: Github by @srgnk