On Mon, 30 Apr 2001, Sune Kirkeby wrote: > [ Philip Charles ] > > Would some kind hacker would produce a script which would do something > > like this:- > > > > Script looks at "app-list", and finds "foo" and then looks at "full-list" > > and finds "foo.doc" and prints "foo.doc" to "doc.list". > > I suppose you mean foo-doc, and mean foreach foo in app-list, which > this shell snippit nicely accomplices, > > $ cat app-list | while read LINE ; do grep $LINE-doc full-list ; done \ > > doc-list > > On my Debian box this comes up with eight packages in doc-list (where > both app- and full-list contain all 764 packages installed on my > system.) > Thanks, it will be use later today.
Phil. - Philip Charles; 39a Paterson St., Dunedin, New Zealand; +64 3 4882818 Mobile 025 267 9420. I sell GNU/Linux CDs. See http://www.copyleft.co.nz [EMAIL PROTECTED] - preferred. [EMAIL PROTECTED]

