Last active
May 2, 2017 08:23
-
-
Save stknohg/71673aa17ca51c140bb4e7405e9fcab6 to your computer and use it in GitHub Desktop.
Bash on Ubuntu on Windowsからロードアベレージを取得するワンライナー
This file contains 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
# Windows 10 Creators Update以降でやってね | |
'cat /proc/loadavg|awk ''{print "@{Load1="$1";Load5="$2";Load15="$3";}"}'';exit;' | bash | iex |
This file contains 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
# Windows 10 Creators Update以降でやってね | |
'cat /proc/loadavg;exit;' | bash | % {$v=-split $_;@{Load1=$v[0];Load5=$v[1];Load15=$v[2];}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
実行例)