Thanks Keith

Works for me.  But does not show some names that I have successfully installed, mingw32-libz-dev for example. I suppose those are aliases that this sed script does not pick up?

-- Tom

On Tue, Sep 21, 2010 at 10:00 PM, Keith Marshall <keithmarshall@users.sourceforge.net> wrote:
On 07/09/2010, LRN <lrn1986@gmail.com> wrote:
>   On 06.09.2010 21:08, Charles Wilson wrote:
>> To get an idea of the possible package specs, do this:
>>
>>      grep 'package name=' /mingw/var/lib/mingw-get/data/*xml
>
> Even better:
>
> grep 'package name=' /mingw/var/lib/mingw-get/data/*.xml | sed
> 's/.*<package name=\"\(.*\)\".*/\1/'

And, even better still--since you've done the hard part of the sed
expression--dispense with grep altogether:

 sed -n 's/.*<package name=\"\(.*\)\".*/\1/p'
/mingw/var/lib/mingw-get/data/*.xml

--
Regards,
Keith

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users