Alberto Zamberlan wrote:
Alle 14:10, venerdì 14 gennaio 2005, Fernando Figaroli ha scritto:

non sarebbe secondo voi più utile che quando faccio un

apt-cache search nomepacchetto

nella lista trovata mi indichi anche già la versione ???


apt-cache show nomepacchetto
così devi sapere per forza il nome esatto del pacchetto.
Provate questo scriptino:

#!/bin/bash
#
usage()
{
echo ""
echo "Usage: ./version.sh packet_to_search"
echo ""
exit 1
}
if [ $# -lt 1 ]
then
usage
fi
#
for i in `apt-cache search $1 |awk '{print $1}'`
do
echo $i - `apt-cache show $i |grep Version |awk '{print $2}'` `apt-cache search $1 |grep "$i -" |cut -f 2- -d " "`
done


Ciao.

--
- Riccardo Tortorici -
Linux Registered User #365170
Count yourself @ http://counter.li.org/ !
Proudly Running Debian GNU/Linux "Sid" - Linux Kernel 2.6.10
--
HTML email can be dangerous, is not always readable, wastes bandwidth and is simply not necessary please don't send them to me!
If you don't know what I'm talking about please read this:


http://www.georgedillon.com/web/netiquette.shtml



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Corsi professionali in aula: Office, sviluppo web e molto altro! Dai subito 
un'occhiata senza impegno ai programmi e al calendario dei corsi a cui sei 
interessato...clicca qui
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2730&d=14-1


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Rispondere a