Abstract
The second tail of a text file problem from HackerRank.
Tail of a Text File 2#
Problem#
In this challenge, we practice using the tail
command to display the last
Display the last
Input Format#
A text file.
Output Format#
Output the last
Sample Input#
Sample Input
New York is a state in the Northeastern and Mid-Atlantic regions of the United States. New York is the 27th-most extensive, the third-most populous populated of the 50 United States. New York is bordered by New Jersey and Pennsylvania to the south. About one third of all the battles of the Revolutionary War took place in New York. Henry Hudson’s 1609 voyage marked the beginning of European involvement with the area.
Sample Output#
Sample Output
ent with the area.
Solution#
#!/usr/bin/env bash
tail -c 20 -