12 Apr
2011
12 Apr
'11
4:23 p.m.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've taken to logging things like compiling packages in a screen log (^a-H) which dumps a file named screenlog.0 (or similar). The problem is that it also capture all kinds of control and unprintable ASCII characters. So I have a little bash/perl script to help clean that all up: $ clean-screenlog screenlog.0 openmpi-build.log $ cat bin/clean-screenlog #!/bin/bash perl -ne 's/\x1b[[()=][;?0-9]*[0-9A-Za-z]?//g;s/\r//g;s/\007//g;s/\010//g;print unless /\x1b_leggett.*$/' < $1 > $2 -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) iEYEARECAAYFAk2kwrQACgkQ4RgdOxQVi0AHXwCfcthFrFbCwXJoZl24bcJo+mRd UxIAn1NNU9meLWmVFBUL5pCMbKctB37Q =AIs0 -----END PGP SIGNATURE-----