I am trying to write a unix code where I will be to count no of rows between (ie here 2)
two "|DATE and TIME | XXXXXX |"
Is there any method I can use with combination of egrap and wc -l
Output:
|-------------------------------|
|DATE and TIME | XXXXXX |
|-------------------------------|
| 21-NOV-2012 15:56:51 | 1259 |
| 21-NOV-2012 15:56:51 | 1364 |
|-------------------------------|
|DATE and TIME | XXXXXX |
|-------------------------------|
| 21-NOV-2012 16:06:55 | 1259 |
| 21-NOV-2012 16:06:55 | 1364 |
|-------------------------------|