Bell on new line

To have a Linux beep each time a new line is printed on standard output, just filter your output through the following code:

gawk '{print "07" $0 }'

This will effectively «prepend» a bell to each line.

You can convert this into an alias or a command (say /usr/local/bin/line-beep.gawk):

#!/usr/bin/gawk -f

{ print "07" $0; }

So it can be used in a code like the following:

tail -f /var/log/messages | grep --line-buffered dhcpd | line-beep.bash

Suscríbete al blog usando la tecnología RSS

Símbolo del "web feed"Este blog, como la mayoría de los creados por WordPress, ofrece un mecanismo de suscripción por medio de la tecnología RSS.

RSS (Really Simple Syndication) es un idioma con el cual yo le hago llegar a tu lector de RSS (llamado «agregador») el contenido de mis entradas más recientes.

Esto significa que te puedes «suscribir» y así estar al tanto de lo más nuevo en este blog.

Sigue leyendo

Opera and mysterious font aliasing problem in Ubuntu and Debian

Opera renders text without antialiasing under Ubuntu and Debian when a value in the font-family CSS property matches a «Core X» font before an Xft font.

That’s why Opera can be set to ignore core X fonts, by unchecking the Enable Core X fonts configuration option. You can use this as a workaround.

Sigue leyendo