as far as i know all unix text processing utilities are reading one line at a time and performing one action on this line.
I have a huge file with a single line of text which contains several tokens im concerned with.
You can think of the content of the file as something like this: xzxzxzzxzxAxzzBxzxCzxxzxxzxzzxzxzAzBzxxxxzzCzxzxzxzxzxxzz
I want to get the two strings between (A and B) and (B and C) for every occurrence of A.*B.*C. In this example my desired output would be this:
How do i do this?
edit: sorry, i didn't make it clear. A, B and C are long Strings that can only be identified by regular expressions.