[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: questions d'un débutant debian



* Jean-Luc Coulon (f5ibh) <jean.luc.coulon@gmail.com> [2005-09-24 22:39] :
> > >
> > > dpkg -l | grep '^rc' vous permet de trouver les paquets removés (tm] et
> > > pas purgés.
> >
> > Note : pas besoin des ' pour le grep.
> 
> Si je fais dpkg -l | grep ^rc, j'obtiens :
> 
> grep: .Blam.jean-luc: Aucun périphérique ou adresse
> ..recently-used:    <URI>file:///home/jean-luc/13Ans20052006.xls</URI>
> 
> Mais si je fais dpkg -l | grep '^rc', j'obtiens :
> 
> rc  gstreamer0.8-ffmpeg               0.8.5-2                      
> FFmpeg plugin for GStreamer
> rc  libflash0c2                       0.4.13-1.1                   
> GPL Flash (SWF) Library - shared library
> rc  libsoup2.2-7                      2.2.3-2                       an
> HTTP library implementation in C -- Shared library
> rc  mozilla-locale-fr                 1.7.10-1                     
> Mozilla French Language/Region Package
> 
> Les ' ne sont peut-être pas obligatoires avec grep mais dans cette
> commande, sans elles, je n'ai pas le résultat escompté.

Je ne comprends pas pourquoi tu observes ce comportement, le ^ est
peut-être interprété par ton shell. Chez moi, cela fonctionne
correctement dans les 2 cas avec bash. Lequel utilises-tu ?


Fred

-- 
Comment poser les questions de manière intelligente ?
http://www.gnurou.org/documents/smart-questions-fr.html
Comment signaler efficacement un bug ?
http://www.chiark.greenend.org.uk/~sgtatham/bugs-fr.html



Reply to: