[Gambas-user] OT: BASH help!

Hamish Robertson robertsonhamish at ...626...
Mon May 12 03:48:30 CEST 2008


Woah thanks rob! Perl?!! Uh oh...

Yeah I've tried that ls thingy but I need to get rid or the .deb extension
and list it as csv...i.e package1, package2, package3, etc...

is this do-able in bash? or is something like perl or python the go here?
Can I do it in gambas?

I'm so new to this... :p

H.


2008/5/12 Rob <sourceforge-raindog2 at ...94...>:

> On Sunday 11 May 2008 12:06, Hamish Robertson wrote:
> > This next bit has me stuck. I need to find some way of getting a
> > list of all the downloaded .deb files and putting that into the
> > control file of a new metapackage. I was thinking of using a bash
> > script here but I'm not sure... Any suggestions?
>
> I have no idea what a .deb control file looks like, but what you're
> looking to do may be as simple as
>
> /bin/ls /var/cache/apt/archives/*.deb >>listofdebs.txt
>
> Maybe I'm misunderstanding, though.  If you need to remove the .deb
> extension, the version or any of that stuff, it becomes more
> complicated but is still a perl one-liner.  Too bad the Gambas script
> interpreter doesn't have a -e flag to allow one-liners ;-)
>
> Rob
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list