Multi Patterns with Grep "$x .*$ y .*$z " ?

view story

http://www.unix.com – I have a program which I am trying to improve and I hope you can help me 1 ) My main program took a file and list of words such as [the, and, is, that, there] 2) Created a matrix of the patter of 2 by 2s of instances where one word was followed by the other word. 3) Save each pattern in a file So having a list like 1 the book is black...2 the dog and its owner...3 the box of tissues...4 of the edge ... For this I was using the following lines Code: For X (the list of the words)         For Y ( the list of the words)           &n (HowTos)