#!/bin/bash

for i in `apt-cache search $* | awk '{print $1}'`
do echo $i
echo -e '\E[31m'"`apt-cache show $i | grep Version`\033[0m"
echo -e '\E[32m'"`apt-cache show $i | grep Description: -A 20 | grep -v Package: | grep -v Priority: | grep -v Section: | grep -v Installed-Size: | grep -v Maintainer: | grep -v Architecture: | grep -v Version: | grep -v Replaces: | grep -v Depends: | grep -v Conflicts: | grep -v Filename: | grep -v Size: | grep -v MD5sum: | grep -v \[-\]\[-\]\[-\] | sed -e "s/ \./ /"`\033[0m"
echo
done
