Skip to content

Instantly share code, notes, and snippets.

View mikelfo's full-sized avatar

MikelFO mikelfo

View GitHub Profile
@kbingham
kbingham / dmesg-diff
Last active December 22, 2023 09:30
If you need to 'diff' two dmesg files, you will find that the timestamps cause diff-noise. Remove the timestamps so that you get to the underlying diff.
#!/bin/bash
# dmesg-diff
# Kieran Bingham 2016
# Public Domain
#
# Strip out Linux Kernel timestamps when performing a diff on two dmesg files
#
# Initial version as proof-of-concept, but already useful.
# This could be extended to parse extra flags for diff for example