Created
July 31, 2016 22:23
-
-
Save fhssn1/34097d52e32d0b21ef8c26e9faf8220d to your computer and use it in GitHub Desktop.
Process timestamps in zsh history
This file contains 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
paste -d' ' <(cat ~/.zsh_history | grep '^: ' | cut -b3-12 | xargs -I{} date -d @{} +'%Y-%m-%d %H:%M:%S') <(cat ~/.zsh_history | cut -b16-) > ~/.zsh_history_processed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment