Last active
August 29, 2015 14:16
-
-
Save todashuta/e8d3e690cbdde2de3ce7 to your computer and use it in GitHub Desktop.
コマンド名に'_'か'-'が含まれるコマンドを列挙するワンライナー
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ruby -e 'ENV["PATH"].split(":").map{|path| Dir["#{path}/*"]}.flatten.map{|path| File.basename(path)}.select{|str| str.include?("-") || str.include?("_")}.sort.each{|it| puts it}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment