Please help in the following problem:
Input is:
Pritam
123
456
Patil
myname
youname
Pritam
myproject
thisproject
iclic
Patil
remaining text
some more text
I need the command which will display the no of lines between two words in the whole file.
e.g. Display all the no of lines between 'Pritam' and 'Patil'.
so out put should be 2, 3. (there r 2 lines between two words, subsequently there r 3 lines)
Thanks for any help in advance.