Created
December 13, 2015 19:27
-
-
Save rtrouton/c05b545d3406de3ca290 to your computer and use it in GitHub Desktop.
One-liner for capturing and formatting the output of top on OS X, then exporting to a /tmp/top-output.txt file
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
/usr/bin/top -l 1 > /tmp/top-scratch.txt && less /tmp/top-scratch.txt >> /tmp/top-output.txt && /bin/rm /tmp/top-scratch.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment