From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24249 invoked by alias); 25 Jan 2014 11:42:45 -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: 18362 Received: (qmail 27704 invoked from network); 25 Jan 2014 11:42:38 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Sat, 25 Jan 2014 19:07:42 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: Re: "ls" output like find ... -print0 anyhow ??? Message-ID: <20140125110742.GA2482@localhost.localdomain> References: <20140125055411.GA3794@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140125055411.GA3794@solfire> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14012511-5806-0000-0000-000023F6EF3E On Sat, Jan 25, 2014 at 06:54:11AM +0100, meino.cramer@gmx.de wrote: > Hi, > > 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! > > Best regards, > mcc > You can use 'find' to list files which you want to list by 'ls' I think. Something like this: find . -maxdepth 1 -path './.*' -prune -o -printf "%P\0" >