learingperl01
MIS
Hello,
I have the following one liner that I use to convert unixdate to a more readable date. How do I replace the unixdate/time in the actual log file with the results of the converted time?
thanks for the help
I have the following one liner that I use to convert unixdate to a more readable date. How do I replace the unixdate/time in the actual log file with the results of the converted time?
thanks for the help
Code:
for i in `cat trd_log.txt | grep -v LOG_FOR | awk '{print $1}' |cut -d '.' -f 1`; do date -d '1970-01-01 '$i' seconds'; done;