From: Philippe Troin <phil@fifi.org>
To: William Scott <wgscott@chemistry.ucsc.edu>
Cc: zsh-users@sunsite.dk
Subject: Re: recursive globbing, filename spaces and xargs
Date: 17 Jan 2005 17:15:49 -0800 [thread overview]
Message-ID: <87hdlf4jwa.fsf@ceramic.fifi.org> (raw)
In-Reply-To: <Pine.GSO.4.43.0501170710390.995-100000@hydrogen.ucsc.edu>
William Scott <wgscott@chemistry.ucsc.edu> writes:
> Hi:
>
> 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.
>
> Any suggestions, or should I stick to find?
print -N **/* | xargs -0 ....
Phil.
next prev parent reply other threads:[~2005-01-18 8:04 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
2005-01-18 1:15 ` Philippe Troin [this message]
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=87hdlf4jwa.fsf@ceramic.fifi.org \
--to=phil@fifi.org \
--cc=wgscott@chemistry.ucsc.edu \
--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).