From: Christian Schneider <strcat@gmx.net>
To: zsh-users@sunsite.dk
Subject: Re: recursive globbing, filename spaces and xargs
Date: Tue, 18 Jan 2005 01:51:52 +0100 [thread overview]
Message-ID: <2005-01-18T01-39-47@painless.my-fqdn.de> (raw)
In-Reply-To: <Pine.GSO.4.43.0501170710390.995-100000@hydrogen.ucsc.edu>
* William Scott <wgscott@chemistry.ucsc.edu> typed:
> One of the things that I haven't been able to figure
> out is how to deal with the error one gets when using
>
> ls **/*
>
> on a well-populated directory with lots of subdirectories.
>
> zsh: argument list too long
>
> If I do this when there are no filename spaces, it works:
>
> echo **/* | xargs ls
>
> but if there are spaces, it fails, and I can't seem to figure
> out how to quote or escape the spaces.
You can use `zargs' to do this:
$ autoload -U zargs
$ zargs -- ls **/*
Read ``less ${^fpath}/zargs(N)'' for more details. HTH.
--
http://www.strcat.de/zsh/#features [*] Christian 'strcat' Schneider
http://www.strcat.de/zsh/#tipps [*] Email.......: strcat@gmx.net
http://www.strcat.de/zsh/#modex [*] GPG-ID......: 47E322CE
http://www.strcat.de/zsh/#links [*] [zsh - the Z shell]
next prev parent reply other threads:[~2005-01-18 8:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-17 15:14 William Scott
2005-01-18 0:49 ` Bart Schaefer
2005-01-18 0:51 ` Christian Schneider [this message]
2005-01-18 1:15 ` Philippe Troin
2005-01-18 2:06 ` William Scott
2005-01-18 9:05 ` Stephane Chazelas
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=2005-01-18T01-39-47@painless.my-fqdn.de \
--to=strcat@gmx.net \
--cc=zsh-users@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).