#!/bin/bash
#made by fabricio alegria herrera


file='nagios.log'

while read line ; do
    test=$(echo $line | cut -d "[" -f2 | cut -d "]" -f1)
    echo -n "log a "
    date -d @$test
done < $file

