News for hackers. Stuff that matters.
Re:Unix Toolbox by alanning on Friday August 07, 2015 @08:25PM (#10025817)
Thank you, this is really helpful.

Could anyone contribute a version for OSX?

Re:Unix Toolbox by guac on Friday August 07, 2015 @09:14PM (#10025942)
If you have homebrew you can just install the 'gnu-sed' package and then change the function to call 'gsed' instead.
Re:Unix Toolbox by dewarrn1 on Saturday August 08, 2015 @11:45AM (#10027562)
Here's my terribly hackish version for BSD userlands (briefly tested on FreeBSD, may work on OS X):

    #!/bin/sh
    eg () {
        man $1 | grep '^E.EX.XA' -A 1000 | grep '^[A-Z]' -m 2 -B 1000 -A 0 | sed '$d' | $PAGER
    }
    eg $1