Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The shell might be POSIX, but sed uses a GNU extension -- namely, the double address "a,b".

EDIT: Sorry, I was wrong, the double address is indeed POSIX. I was thinking of the GNU syntax: a,+n





From the fine article:

Why shell?

Well, not really because it’s portable, as despite being a “POSIX script”, most of the date and sed tricks I do don’t work on the BSD versions of those commands, with comrak, additionally, being a dependency.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: