Extracting text between two strings, multiple instances

view story

http://www.unix.com – Hi experts, Ive got a text file which has the following text which will occur in this format at least one time: +=========================>> Some stuff that evreryone should knnow other stufsjdokajkajokajda aijhjajcdjajcisajcqsqdqwdqad <<=========================+ It is likely that this will occur numerous times in a file which shouldn't have more than 200 lines. The text between >> and << is what I want to extract to a different file. The following code will grab it but only the first instance: Code: #---------------------------------------------------------- (HowTos)