Ruby sort ps: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

30 July 2008

14 November 2007

  • curprev 00:4900:49, 14 November 2007Egge talk contribs 1,137 bytes +1,137 New page: Today I needed to sort ps by the total CPU time. I also wanted to sum all the same type processes together. Here's the script I came up with <geshi lang="ruby"> #!/bin/env ruby # # Giv...