cheatをインストールすると、ホームディレクトリに.cheatディレクトリができるので、
cheat -e foo
ってやると、エディタが開いて、オレオレcheatコマンドを作ることができる。
# show all lines without duplication sort file | uniq # show not duplicated lines sort file | uniq -u # show duplicated lines only sort file | uniq -d # count all lines sort file | uniq -c # count not duplicated lines sort file | uniq -uc # count only duplicated lines sort file | uniq -c
なお、この内容はPRを出しました。 New cheatsheeet for uniq by shigemk2 · Pull Request #202 · chrisallenlane/cheat · GitHub