tl;dr: On OS X you might want linux style utilities instead of OS X's BSD style utilities
I have been using Unix since 1985 and as a result I get all split, grep and all the utilities mixed up, so glad we can use all of the simultaneously :-) !
- To get gnu core utilities like split (called gsplit by default on OS X to prevent breaking scripts that rely on BSD split):
brew install coreutils
- To get BSD style grep (again called ggrep to prevent breaking scripts that rely on BSD grep):
brew install homebrew/dupes/grep
- previous post on gsplit