Here's the problem: I need to separate a file into "pages" of 10 lines each. The page must contain 8 lines of the input file, the last two must be like this:
========================
x/xx (current page/total number of pages)
so a "page" should look like this:
dsfg
sdfg...
Hi, I need to write an awk script that would count the words in a file and print the result. I don't know what kind of command would do that.
I am a beginner and I could really use some help.
Thank you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.