7

Can I match a multiline pattern with sed

view full story
linux-howto

http://stackoverflow.com – Suppose I have this pattern in a file: <directory number=133 name=var1> <myfile name=test1 /> </directory> Now I want to replace that pattern with <directory number=133 myfile=test1 /> How can I do that with sed? (HowTos)