Guest_imported
New member
- Jan 1, 1970
- 0
I want to do the following:
I have a textfile with a few pages of text,
and I'd like to get as output all the words alphabetticaly sorted, with the linenumbers and pagenumbers after it.
Like this:
morning 1(5) 2(3)
the 1(2) 1(3) 1(4) 2(3)
so morning is on line 5 on page 1 and so on...
The lines per page are given by the command line:
sh script.awk 10 document.txt (10 lines)
Can anyone please help me? Thanks!
I have a textfile with a few pages of text,
and I'd like to get as output all the words alphabetticaly sorted, with the linenumbers and pagenumbers after it.
Like this:
morning 1(5) 2(3)
the 1(2) 1(3) 1(4) 2(3)
so morning is on line 5 on page 1 and so on...
The lines per page are given by the command line:
sh script.awk 10 document.txt (10 lines)
Can anyone please help me? Thanks!