manchicken@thepea:~$ dpkg -l | awk '/pymacs|python-mode/{print $2,$3}' pymacs 0.22-6 python-mode 1:1.0-3.1ubuntu1
manchicken@thepea:~$ dpkg -l | awk '/emacs/{print $2,$3}' emacs 22.1-0ubuntu5 emacs-goodies-el 27.1-1 emacs21 21.4a+1-5ubuntu4 emacs21-bin-common 21.4a+1-5ubuntu4 emacs22 22.1-0ubuntu5 emacs22-bin-common 22.1-0ubuntu5 emacs22-common 22.1-0ubuntu5 emacs22-el 22.1-0ubuntu5 emacs22-gtk 22.1-0ubuntu5 emacs22-nox 22.1-0ubuntu5 emacsen-common 1.4.17
manchicken@ thepea: ~$ dpkg -l | awk '/pymacs| python- mode/{print $2,$3}'
pymacs 0.22-6
python-mode 1:1.0-3.1ubuntu1
manchicken@ thepea: ~$ dpkg -l | awk '/emacs/{print $2,$3}'
emacs 22.1-0ubuntu5
emacs-goodies-el 27.1-1
emacs21 21.4a+1-5ubuntu4
emacs21-bin-common 21.4a+1-5ubuntu4
emacs22 22.1-0ubuntu5
emacs22-bin-common 22.1-0ubuntu5
emacs22-common 22.1-0ubuntu5
emacs22-el 22.1-0ubuntu5
emacs22-gtk 22.1-0ubuntu5
emacs22-nox 22.1-0ubuntu5
emacsen-common 1.4.17