ablog

不器用で落着きのない技術者のメモ

macOS で head コマンドを使う

coreutils をインストールして、

$ brew install coreutils

パスを通す。

$ vi ~/.bash_profile
PATH=/usr/local/opt/coreutils/libexec/gnubin:${PATH}
MANPATH=/usr/local/opt/coreutils/libexec/gnuman:${MANPATH}
$ . ~/.bash_profile