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*

7
  • For such kind of operation better to use sed same with awk: sed '/begin/,/end/! d' text Commented Nov 19, 2014 at 9:36
  • Yes, with awk, sed it is possible. But that can't be done using grep? Commented Nov 19, 2014 at 9:38
  • @slm, what's the point of closing the question for that reason? This question makes sense on both sites (askubuntu and here), a lot more so on unix.se Commented Nov 19, 2014 at 12:07
  • @StéphaneChazelas - we have a specific close reason b/c cross-posting isn't allowed/tolerated. It's one thing if the Q was modified to conform to each site, but in this case it was a verbatim copy/paste. It's just not allowed. If the OP wants to close/delete the other Q's then it can be reopened. BTW, it was specifically flagged by others and I handled the flagging. Commented Nov 19, 2014 at 12:17
  • 2
    don't crosspost askubuntu.com/questions/551338/… Commented Nov 19, 2014 at 15:53