]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: add --since and --until
authorKarel Zak <kzak@redhat.com>
Wed, 21 Oct 2020 10:03:45 +0000 (12:03 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 21 Oct 2020 10:09:18 +0000 (12:09 +0200)
commit732d75945ef5a299f08d60c6f8b28152b8b38bbc
tree0a4650e588c71a0ab74e097a2b274ed4bd408c22
parent5064635395c37340caeca5879984732db403b756
dmesg: add --since and --until

$ date
Wed 21 Oct 2020 12:05:07 PM CEST

$ dmesg --ctime --since '1 hour ago'
[Wed Oct 21 11:47:13 2020] AAA
[Wed Oct 21 11:55:48 2020] BBB

$ dmesg --ctime --since '1 hour ago' --until '10 minutes ago'
[Wed Oct 21 11:47:13 2020] AAA

Addresses: https://github.com/karelzak/util-linux/issues/1166
Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/dmesg
sys-utils/dmesg.1
sys-utils/dmesg.c