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' |