Skip to content

Instantly share code, notes, and snippets.

@Koala
Last active December 17, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Koala/5606090 to your computer and use it in GitHub Desktop.
Save Koala/5606090 to your computer and use it in GitHub Desktop.
Read the /var/log/boot file with a special characters replacement for Debian Wheezy.
#!/bin/bash
# Read the /var/log/boot file with a special characters replacement for
# Debian Wheezy.
# see http://wiki.debian.org/bootlogd
# Version: 1.0 - 19.05.2013
sed $'s/\^\[/\E/g;s/\[1G\[/\[27G\[/' /var/log/boot | less -r
wait
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment