dotfiles/bin/prettify_bash_history.awk
Akemi Izuko f6881cea7a
Init again
The dotfiles are back
2022-09-06 23:34:19 -06:00

10 lines
209 B
Awk
Executable file

#!/usr/bin/env -S awk -f
# Translate the unix-timestamps in bash history to dates. Requires gnu `date`
{
if ($0 ~ /^#[0-9]+$/)
system("date -d @" substr($0, 2));
else
print " "$0
}