Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: recursive globbing, filename spaces and xargs
- X-seq: zsh-users 8388
- From: Christian Schneider <strcat@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: recursive globbing, filename spaces and xargs
- Date: Tue, 18 Jan 2005 01:51:52 +0100
- In-reply-to: <Pine.GSO.4.43.0501170710390.995-100000@xxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Born to frag.
- References: <Pine.GSO.4.43.0501170710390.995-100000@xxxxxxxxxxxxxxxxx>
* William Scott <wgscott@xxxxxxxxxxxxxxxxxx> 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@xxxxxxx
http://www.strcat.de/zsh/#modex [*] GPG-ID......: 47E322CE
http://www.strcat.de/zsh/#links [*] [zsh - the Z shell]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author