I want to convert the timestamps in a .zsh_history
file to their readable equivalents.
Is there some search and replace I can do in emacs that will replace the time with something like (format-time-string unixtime)
?
: 1568128379:0;cp -a ~/.zshrc.pre-oh-my-zsh ~/.zshrc
: 1568128381:0;exit
This same question was asked in stack exchange: https://emacs.stackexchange.com/questions/79221/is-it-possible-for-a-query-replace-regex-to-replace-the-value-with-a-computed-va
Yes, I know it’s the same guy.
And how is this a meaningful answer to the question?
Is there some rule that questions asked here shouldn’t be asked on stackexchange too?