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*

2
  • 10
    If using GNU sed, I would start with the least voted answers which use sed's q command to set the exit code. (Sadly q's exit code argument is not POSIX compliant.) Commented Nov 15, 2012 at 13:09
  • 1
    The least voted answer has changed. I think the answer @manatwork is referring to is stackoverflow.com/a/12144882/1033422 Commented Jan 7, 2014 at 8:52