12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

1分で実現できる有用な技術Advent Calendar 2014

Day 15

コマンド実行ランキングを算出して日頃の行いを振り返ってみる

Last updated at Posted at 2014-12-15

この記事は「1分で実現できる有用な技術 Advent Calendar 2014」の15日目の記事です。

##はじめに
これは@namikawaさんの以下のスライドで紹介されていて知ったワンライナーです。
bash(set)コマンドのオプション3選

年の瀬にこれで日頃の行いを振り返ってみては如何でしょうかm(_ _)m

##コマンド
$history | awk '{print $2}' | sort | uniq -c | sort -nr

##こんな感じでした
1488 cd
1390 ll
1006 vagrant
930 ssh
506 vi
384 scp
341 git
334 gst
264 ga
233 ggpush
209 gc
176 brew
169 sudo
153 sh
128 rm
117 gco
116 python
91 heroku
69 source
68 php
67 la
66 gc!
61 gem
58 pwd
56 npm
54 pip
52 nkf
52 gcb
46 rbenv
46 ggpull
41 curl
 ・
 ・
 ・

12
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?