$ dmesg -T|sed -e 's|\(^.*'`date +%Y`']\)\(.*\)|\x1b[0;34m\1\x1b[0m - \2|g'
Use sed to color the output of a human-readable dmesg output
by David Winterbottom (codeinthehole.com)
$ dmesg -T|sed -e 's|\(^.*'`date +%Y`']\)\(.*\)|\x1b[0;34m\1\x1b[0m - \2|g'
Use sed to color the output of a human-readable dmesg output
by David Winterbottom (codeinthehole.com)
0sem comentários ainda