Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # dmesg with full date
- base=$(cat /proc/uptime | cut -d ‘.’ -f1); seconds=`date +%s`; dmesg | sed 's/^\[\(.*\)\..*\]\(.*\)$/\1\n\2/' | while read first; do read second; first=`date +"%d/%m/%Y %H:%M:%S" --date="@$(($seconds - $base + $first))"`; echo "[$first] $second"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement