Write a program in C (without using any standard tools or library functions) to print the top N or/and bottom N lines of a given set of files.
The way to invoke the program is:
a.out –q –h N –t N File1 File2 ....Filen (-h N – Print the top N lines from each file
-t N – The bottom N lines from each file) -q – Do not print the header giving the file names
1
Expert's answer
2020-05-18T07:27:33-0400
Dear Samiksha , your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment