zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Notes on zsh, zsh/files and recovery
Date: Mon, 20 Oct 2008 08:09:55 -0700	[thread overview]
Message-ID: <081020080955.ZM21179@torch.brasslantern.com> (raw)
In-Reply-To: <20081020002843.GA13631@redoubt.spodhuis.org>

On Oct 19,  5:28pm, Phil Pennock wrote:
} 
} Yeah, "echo *" was the first thing I did, but I needed to see the size
} and timestamps to figure out which files were affected.

If your complaint is about speed, a lot faster would probably be

zls () {
  local -a st
  local name dev inode mode nlink uid gid rdev
  local size atmim mtime ctme blksize blocks link
  [[ $# -eq 0 ]] && set -- *
  zstat -nsLA st "$@"
  for name dev inode mode nlink uid gid rdev \
      size atmim mtime ctme blksize blocks link \
    in "$st[@]"
  do print -r -- "$mode $nlink ${(r:8:)uid} ${(r:8:)gid} ${(l:9:)size} $name"
  done
}

Requires a recent enough zsh to have the multiple-assignment "for" syntax.


      reply	other threads:[~2008-10-20 22:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-18 20:45 Phil Pennock
2008-10-18 20:56 ` Mikael Magnusson
2008-10-19  6:39 ` Dan Nelson
2008-10-20  0:28   ` Phil Pennock
2008-10-20 15:09     ` Bart Schaefer [this message]

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=081020080955.ZM21179@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /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).