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

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


  reply	other threads:[~1998-06-13 22:03 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     ` lssum - summing up sizes of files Danek Duvall
1998-06-13 21:56       ` Sven Guckes [this message]
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=19980613235639.B5224@math.fu-berlin.de \
    --to=guckes@math.fu-berlin.de \
    --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).