Last active
April 4, 2018 03:44
-
-
Save jim80net/f634be71b57f8b21c43ca00bc395061f to your computer and use it in GitHub Desktop.
oneliner: Print KBFS update history for any given top level folder
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
| ruby -rjson -e 'a = JSON.parse File.read(".kbfs_update_history"); a["Updates"].each {|v| ops = v["Ops"].map {|op| op["Op"]}.select {|op| op !~ /gc|sync|resolution/ }.join("\n".ljust(53)); printf("Op: %s by %s on %s: %s\n", v["Revision"].to_s.ljust(4), v["Writer"].ljust(15), (v["Date"][0,19]), ops ) if ops !~ /^$/ }' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example output
Known issues