zsh-users
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@campusclub.princeton.edu>
To: zsh-users@math.gatech.edu
Subject: Re: lssum - summing up sizes of files
Date: Sat, 13 Jun 1998 15:38:45 -0400	[thread overview]
Message-ID: <19980613153845.A28197@morel.campusclub.princeton.edu> (raw)
In-Reply-To: <19980613211233.A5224@math.fu-berlin.de>; from Sven Guckes on Sat, Jun 13, 1998 at 09:12:33PM +0200

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


  parent reply	other threads:[~1998-06-13 19:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-13 16:10 Sven Guckes
1998-06-13 17:06 ` Bart Schaefer
1998-06-13 19:12   ` Sven Guckes
1998-06-13 19:33     ` adding examples to man pages Richard Coleman
1998-06-13 19:38     ` Danek Duvall [this message]
1998-06-13 21:56       ` lssum - summing up sizes of files Sven Guckes
1998-06-14  0:20         ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19980613153845.A28197@morel.campusclub.princeton.edu \
    --to=duvall@campusclub.princeton.edu \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).