for ((i=0; $i<100; i++)); do time -p cap -q uptime; done 2>&1 | \ | |
ruby -pe ' | |
BEGIN { puts %q["real","user","sys"] } | |
$_.sub!(/(?:real|user) (.*)\n$/, "\\1,") | |
$_.sub!(/(?:sys) (.*)/, "\\1") | |
' | tee out.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment