Get the answers you need at Westonci.ca, where our expert community is dedicated to providing you with accurate information. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

Write a program that prints out the last few lines of a file. The program should be efficient, in that it seeks to near the end of the file, reads in a block of data, and then goes backwards until it finds the requested number of lines; at this point, itshould print out those lines from beginning to the end of the file. To invoke the program, one should type: mytail -n file, where nis the number of lines at the end of the file to print.