Hi, On Tue, Nov 30, 2010 at 04:54:40AM -0800, S Mathias wrote: > if [ "$(dpkg -l | awk '/tofrodos/ && /^ii/ {print $2}' | awk '/^tofrodos/')" > == "" ]; then echo -e "error: no zip package detected\!\n\nYou could install > it like e.g.: \"apt-get install tofrodos\""; fi > > Is there a better way then this? Yes, I think so: (dpkg -l | grep -q "^ii tofrodos ") || echo "not installed"
That should do the same.... Axel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101130133333.gi13...@axel