> > In egrep or sed what is the metacharacter to match _across_ a newline > > i.e. something like 'line1chars.\n.line2chars' ? $ matches the end of > > a line, but I want to match several lines for search and replace
> It's probably easier to do whatever you want to do in Perl. But if you > insist on using grep or sed, you're stuck with writing something > moderately complicated in sed. You could also do some sneaky trick with gawk, by adjusting the record-separator regex (its default is "\n"). You can search for \n as per normal within records, but the RS regex is not part of the record. What to put in there depends on your specific input, see if "\n\n" would do the trick. Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
