searching words & print prefixed string after it

view full story

http://www.unix.com – I have a text which I divided them into sentences and now printed them in a rows. I want to get the list of most of words ( the, and, a) and print 5 words after them (so 6 with the word itself). I have created an acceptfile with those rows and using grep but I have rows that have these words more than once but they are not being divided. Can you please help me?:wall::wall: My data for now looks like this This is a bookThe book is on the shelf and the pen is on the table Thank you in advance A-V (HowTos)