grep /var/log/base-config.log.1

Carsten carscht at jpberlin.de
Thu Apr 28 19:00:30 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
when searching the log file /var/log/base-config.log.1 with grep I
remark some strange behaviour. I recognized it when (resulting out of a
"for" loop) entering the command "grep 'oss' /var/log/base-config.log.1"
which brought up a blue dpkg configure screen titled "Ubuntu
configuration" and a dialog with the label "Configuration of Ubuntu base
system". I received different seemingly dpkg related outputs when using
different search patterns in the grep command.
Meanwhile I've figured out how this happens, funny though: In german the
dialog screen contains the pattern "oss" in the middle of a word and the
log file contains the whole screen in one line using ansi(?) codes. So
what looks like the output of a dpkg command is just grep showing the
line in which it found the search pattern. As it is supposed to do, indeed.
Sorry for this quite pointless posting but I was pretty surprised when
this effect first showed up and maybe someone is inspired in any way by
learning about this irritating behaviour. :-)
Carsten

- --
Get my GnuPG-Key with:
gpg --keyserver search.keyserver.net --recv-keys 6D3C4E34
Fingerprint: A995 DAC2 7AFD A31E C5E6  F92A ACEB 185C 6D3C 4E34
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCcTLOrOsYXG08TjQRAojgAKDaYoSd18UlNSaA2z6aHGRZ0JSB1QCg4V1P
LVzk4WLydNd4eYeh7Lxmd/k=
=wHPn
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list