Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?
Suppose you have a text file in which you want to change multiple lines of text to something else, but without using a text editor. When it comes to finding and replacing a multi-line string pattern, Perl's regular expression based pattern matching comes in handy.