DMESG EPOCH CONVERTER

De Wiki Clusterlab.com.br
Ir para navegação Ir para pesquisar
date -d@$(expr $(expr $(date +%s) - $(cat /proc/uptime | awk '{print $1}'| awk -F . '{print $1}')) +  927315)
dmesg| tail -n 40 | sed -e "s/\[//g" -e "s/\]//g" | awk  '{print $1}' | while read valor; do TAG=$(echo $valor | awk -F . '{print $1}'); echo $(date -d@$(expr $(expr $(date +%s) - $(cat /proc/uptime | awk '{print $1}'| awk -F . '{print $1}')) + $TAG)) \; $(dmesg | grep $valor); done