Christophe � CHiPs � PETIT a �crit, dimanche 2 juin 2002, � 22:08 :
[...]
> Pour ma mise � jour en woody et une autre sur la machine d'un copain, on
> a consid�r� qu'il fallait d�sinstaller des paquets tant que "COLUMNS=132
> dpkg -l | grep ^ii | grep -i ximian" renvoyait quelque chose, mais on
> n'est pas bon avec awk pour g�n�rer le script "apt-get remove xxx" qui
> aurait bien march�...

COLUMNS=255 dpkg -l | awk '/^ii.*[Xx]imian/{print $2}' > ximian-sucks

# v�rifier, puis

 <ximian-sucks xargs --max-args �j'sais pas� apt-get remove


Si tu trouve laid [Xx][Ii][Mm][Ii][Aa][Nn], gawk propose la variable
IGNORECASE, mais bon...

> Hop !

houba ?
-- 
Jacques L'helgoualc'h


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

Répondre à