Skip to content

Instantly share code, notes, and snippets.

@tiagovrtr
Created June 30, 2021 15:47
Show Gist options
  • Save tiagovrtr/1bb464d96fe0b079118bd8f66d222095 to your computer and use it in GitHub Desktop.
Save tiagovrtr/1bb464d96fe0b079118bd8f66d222095 to your computer and use it in GitHub Desktop.
Output zsh_history with readable dates
sed -E 's/(([^0-9][0-9]{0,9})*)(\b[0-9]{10}\b)(([0-9]{0,9}[^0-9])*)/printf "%s%s%s" "\1" "$(date -ud @\3)" "\4"/ge' ~/.zsh_history | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment