How to search and replace a multi-line string in a file

Posted by xmodulo on Feb 25, 2016 7:00 AM EDT
Xmodulo; By Dan Nanni
Mail this story
Print this story

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.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, Linux, Ubuntu

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.