From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29699 invoked by alias); 27 Jan 2014 02:17:34 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18371 Received: (qmail 939 invoked from network); 27 Jan 2014 02:17:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201312; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=fwpA4I8VhWDcV+8HQ4RXOjGuRcRzY/1QnuwCNpDbL3c=; b=Y4G9ax833aGyaxflVh6Q+7zlUNkIQ/i/l/OND7qxZagMCAMAI8U7TtmBljHQt0tdi7XFUnl34qhx7+uCTLccW4wbx0zVer/DSCWNEFhlnGTdpRUVnDdkM2TboKVxmZlkZ+NNI7peZzD8aK21duFqfc1e8rbNQP7UyW4f7nVTmoP9VK6B8kXqhMz14Nggv/yhnqZGFZBo3TNbNK97; Date: Sun, 26 Jan 2014 20:59:51 -0500 From: Phil Pennock To: meino.cramer@gmx.de Cc: zsh-users@zsh.org Subject: Re: "ls" output like find ... -print0 anyhow ??? Message-ID: <20140127015951.GA56068@redoubt.spodhuis.org> Mail-Followup-To: meino.cramer@gmx.de, zsh-users@zsh.org References: <20140125055411.GA3794@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140125055411.GA3794@solfire> OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/0x3903637F.asc On 2014-01-25 at 06:54 +0100, meino.cramer@gmx.de wrote: > is there a way to temporary convince 'ls' to act that way, that I can > use '| xargs -0' with it? > > Thank ypu very much in advance for any help! I'd use the print builtin of zsh, so that there are no argv length limitations, combined with zsh's very powerful glob operators. print -N **/*.c(mM-1) | xargs -0 ... The `print -N` uses NUL characters between arguments, for compatibility with `xargs -0`, and the example glob finds all .c files anywhere under the current directory which were modified in the past month. -Phil