From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26684 invoked by alias); 12 Mar 2014 00:02:49 -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: 18587 Received: (qmail 7627 invoked from network); 12 Mar 2014 00:02:41 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=HYUtEE08 c=1 sm=1 tr=0 a=C0g08kOJMvqFFjNsah5K5g==:117 a=C0g08kOJMvqFFjNsah5K5g==:17 a=HIA4oEAs-AEA:10 a=99Gv9x3zQDwA:10 a=IkcTkHD0fZMA:10 a=nDhE3Wrwa53mWBfbgbEA:9 a=QEXdDO2ut3YA:10 a=HU1yBzeljLUA:10 a=XIwIJFWYM60A:10 Message-id: <531FA42D.5050207@eastlink.ca> Date: Tue, 11 Mar 2014 17:02:53 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: List ALL files modified in last 24hrs OR list atleast 10 recent files References: <1394533556.43856.YahooMailNeo@web194603.mail.sg3.yahoo.com> In-reply-to: <1394533556.43856.YahooMailNeo@web194603.mail.sg3.yahoo.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit On 03/11/2014 03:25 AM, Amm wrote: > Now I want to combine (OR) these two such that: > > Case 1) > If there are more than 10 files modified in 24hrs > then list them all (not just 10) > > For that, why not just pipe to 'wc -l' to count the lines and then do some 'if' tests from there?