From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1058 invoked from network); 13 Jun 1998 22:03:00 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 13 Jun 1998 22:03:00 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id RAA20641; Sat, 13 Jun 1998 17:57:26 -0400 (EDT) Resent-Date: Sat, 13 Jun 1998 17:55:38 -0400 (EDT) Message-ID: <19980613235639.B5224@math.fu-berlin.de> Date: Sat, 13 Jun 1998 23:56:39 +0200 From: Sven Guckes To: zsh-users@math.gatech.edu Subject: Re: lssum - summing up sizes of files Mail-Followup-To: zsh-users@math.gatech.edu References: <19980613181013.A4302@math.fu-berlin.de> <980613100641.ZM27081@candle.brasslantern.com> <19980613211233.A5224@math.fu-berlin.de> <19980613153845.A28197@morel.campusclub.princeton.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i In-Reply-To: <19980613153845.A28197@morel.campusclub.princeton.edu>; from Danek Duvall on Sat, Jun 13, 1998 at 03:38:45PM -0400 X-Mailer-Info: http://www.math.fu-berlin.de/~guckes/mutt/ Resent-Message-ID: <"URBYv.0.i15.OLlWr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1609 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Quoting Danek Duvall (duvall@campusclub.princeton.edu): > > I keep wondering why "gls" doesn't aloow to "sum file sizes". > As long as you're using GNU tools, du has a -c option which will sum up the > sizes of the files you specify. It's perhaps not as flexible as a zsh > script, but for this simple thing, it gets the job done. Sure, but - if the zsh has to do globbing anyway then why not have it looks at the files, too? As there is a GLOBBING modifier for "size" then I suspect there must be a nice way to extract the size of files somehow. Would be nice if there was an easy way to get the sum without writing an explicit loop for this, too. I am trying not to ask for a built-in replacement for gls here - but then again, I wouldn't mind. ;-) Sven