Skip to content

Instantly share code, notes, and snippets.

@andrealmar
Created September 11, 2018 19:32
Show Gist options
  • Save andrealmar/fabdc0a5d325d20b441abb8e6fc63666 to your computer and use it in GitHub Desktop.
Save andrealmar/fabdc0a5d325d20b441abb8e6fc63666 to your computer and use it in GitHub Desktop.
Converter a primeira coluna de um arquivo de log, que estava em unixtime, pra tempo human-readable
awk '{$1 = strftime("%F %T", $1) ; print ;}' oldfile > newfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment