From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 179 invoked from network); 13 Jun 1998 19:54:13 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 13 Jun 1998 19:54:13 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id PAA17432; Sat, 13 Jun 1998 15:40:07 -0400 (EDT) Resent-Date: Sat, 13 Jun 1998 15:38:22 -0400 (EDT) Message-ID: <19980613153845.A28197@morel.campusclub.princeton.edu> Date: Sat, 13 Jun 1998 15:38:45 -0400 From: Danek Duvall 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19980613211233.A5224@math.fu-berlin.de>; from Sven Guckes on Sat, Jun 13, 1998 at 09:12:33PM +0200 Resent-Message-ID: <"cASNr.0.2F4.hKjWr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1608 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sat, Jun 13, 1998 at 09:12:33PM +0200, Sven Guckes wrote: > Quoting Bart Schaefer (schaefer@brasslantern.com): > > In 3.0, there's no direct way to read the size of the file into the shell. > > You'd have to run "ls" and parse the output, or something. > > I see. Too bad. > And I keep wondering why "gls" doesn't aloow to "sum file sizes". > Doesn't everybody need this kind of thing every day? 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. Danek