Created
March 17, 2020 08:49
-
-
Save ar2rsoft/78423b4beb939da645ac5683fa2efea1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Если в логи пишется таймштамп, то при выводе логов не очень удобно - пример ниже, как можно отформатировать дату | |
cat file.log|perl -pe'use POSIX qw(strftime);s/^\[(\d+)\]/strftime("%Y-%m-%d %H:%M:%S",localtime $1\/1000)/e' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment