[Tiny-tux] Human-readable dmesg filter

Wladyslaw Zbikowski embeddedlinuxguy at gmail.com
Wed Mar 2 01:51:15 UTC 2011


On Mon, Feb 28, 2011 at 10:37 AM, Miah Johnson <miah at chia-pet.org> wrote:
> http://en.wikipedia.org/wiki/Unix_time
> http://www.epochconverter.com/programming/functions-perl.php

Unix time is useful if you want to see timestamps as dates rather than
time elapsed since system boot, as dmesg shows by default. I added a
-d option for this case.

$ dmesg | tail -n 1 | dtime -d
01 Mar 17:37:16 wlan0: associated
$ dmesg | tail -n 1 | dtime
54m 44s 597us 409 ms wlan0: associated
$ dmesg | tail -n 1
[ 3284.409597] wlan0: associated
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dtime
Type: application/octet-stream
Size: 1630 bytes
Desc: not available
URL: <http://www.noisebridge.net/pipermail/tiny-tux/attachments/20110301/87036071/attachment.obj>


More information about the Tiny-tux mailing list