Skip to content

Instantly share code, notes, and snippets.

@ewalk153
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save ewalk153/9492717 to your computer and use it in GitHub Desktop.

Select an option

Save ewalk153/9492717 to your computer and use it in GitHub Desktop.
cat | ruby -e "STDIN.readlines.select{|l|l[/memory_total/]}.map{|l| l.split(/\s+/)}.map{|l| puts \"#{l[2][/T[\d+:]+/][1..-1]} #{l[9][/([\d.]+)MB/][0..-3]}\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment