Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • afaik, you can do it with perl regex but not with sed/awk/grep. Commented Mar 28, 2011 at 11:19
  • 1
    @forcefsck> You can do multiline pattern matching with 'sed' and 'awk', but in both cases you need more than a single command... Commented Mar 29, 2011 at 15:03
  • 1
    don't ask like "is it possible to use sed to do ...." you can use sed to do anything within the area of text processing. LOL Commented Oct 6, 2013 at 3:13
  • @CiroSantilli - there's nothing wrong with a similar Q showing up on the various SE sites, only if the original poster posted the identical Q on multiple sites. Commented Sep 16, 2014 at 1:34
  • @sim I did not mean to imply that =) Commented Sep 16, 2014 at 6:28