copying text between two unique text patterns
copying text between two unique text patterns
dear colleagues:
i have .rtf files of a collection of newspaper articles. each newspaper article starts with a variation of the phrase "document * of 20" and is separated from the next article with the character string "==================="
i would like to be able to take the text composing each news article from between these two patterns and dump them into separate, uniquely named files. i've been playing around with sed, grep, cut and csplit, but nothing seems to be working. i have the regular expressions developed to capture the two lines "document * of 20" and "--------" independently, but i can't figure out how to capture and play with the text between the two lines. i hope you can help.
yours,
simon j. kiss
|