Exemplos:
echo 1183480465.728 | awk '{print strftime("%c",$1),$2}'
tail -f /var/log/squid/access.log |awk -F" " '{print strftime("%c",$1),$3,$7}'
echo "1085173079" | awk '{print strftime("%F %H:%M:%S",$1)}'
2004-05-21 17:57:59
echo "1085173079" | awk '{print strftime("%F",$1)}'
2004-05-21
echo "1085173079" | awk '{print strftime("%F",$0)}'
2004-05-21
Nenhum comentário:
Postar um comentário