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

    # unalias grep && unalias egrep && cp "$(command -v grep)" "$(dirname "$(command -v grep)")/egrep"
1 line. Fixed. Done. Btw needs to be run as root ( as signified by # prompt above)

EDIT: see other comment in this thread from FreeBSD user that on FreeBSD grep, egrep, and fgrep are all separate but identical (copies) of the same file. So this isn’t quite such a silly solution as some might think.



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

Search: