Question: By default, the Unix tail command prints the last 10 lines of a specified file to standard output; however, the user can specify any number
By default, the Unix tail command prints the last 10 lines of a specified file to standard output; however, the user can specify any number of lines to display. Write a python program that mimics the functionality of tail. Prompt the user for the name of a file and the number of lines to display from the file's tail, and then print just those lines from the file.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
