From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: (qmail 3153 invoked from network); 13 Mar 2020 19:48:56 -0000 Received-SPF: pass (minnie.tuhs.org: domain of minnie.tuhs.org designates 45.79.103.53 as permitted sender) receiver=inbox.vuxu.org; client-ip=45.79.103.53 envelope-from= Received: from unknown (HELO minnie.tuhs.org) (45.79.103.53) by inbox.vuxu.org with ESMTP; 13 Mar 2020 19:48:56 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id DCFD29CD87; Sat, 14 Mar 2020 05:48:51 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 77B069CD60; Sat, 14 Mar 2020 05:48:24 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id B839B9CD60; Sat, 14 Mar 2020 05:48:21 +1000 (AEST) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) by minnie.tuhs.org (Postfix) with ESMTPS id EF71A9CD5F for ; Sat, 14 Mar 2020 05:48:20 +1000 (AEST) Received: by sdaoden.eu (Postfix, from userid 1000) id A18F016054; Fri, 13 Mar 2020 20:48:18 +0100 (CET) Date: Fri, 13 Mar 2020 20:48:18 +0100 From: Steffen Nurpmeso To: Doug McIlroy Message-ID: <20200313194818.XS-yZ%steffen@sdaoden.eu> In-Reply-To: <202003130304.02D343ok099975@tahoe.cs.Dartmouth.EDU> References: <202003130304.02D343ok099975@tahoe.cs.Dartmouth.EDU> Mail-Followup-To: Doug McIlroy , tuhs@tuhs.org User-Agent: s-nail v14.9.17-52-g56288e6a OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. Subject: Re: [TUHS] Command options and complexity X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Doug McIlroy wrote in <202003130304.02D343ok099975@tahoe.cs.Dartmouth.EDU>: |> -,: Make the option standard: output numbers with commas every 3 digits | |A terrible idea. Whatever ls outputs should be easy for other |programs to read, and few know how to read commafied numbers. |As others have mentioned, this is also a strong argument for |changing the output representation of dates. | |I often do mailx -H | sort -t/ -k2nr to sort in reverse order of size--a |quick way to find the pay dirt when I want to shrink my mailbox. |This would never fly if the sizes had commas. (Well, I suppose I |could add sed s/,//g to the pipeline.) It was not fully developed code why you need to do this with the old mailx you use. With v14.9.11 that is in Debian stable (it is called s-nail there) and Ubuntu since "Disco Dingo" (i do not know Ubuntu, but i seem to recall you said you were using it) that becomes mailx -Sautosort=date -H [| tac] for example. But you could also use -L and do something like mailx -H -L '(larger 5000)' # > 5000 bytes mailx -H -L '(before 1-Mar-2020)' mailx -H -L '(since 1-Mar-2020)' or even go a batch approach (`search' == `from'): printf 'search "(before 1-Mar-2020)" # sh(1)ell quoting needed! move ` +elder # move the last selection to $folder/elder xit ' | mailx -Squiet -Snoheader This can be improved further (-# batch mode, for example). A lot of things are missing yet, however, these examples use IMAP search expression syntax, a compile-time option. No "regular" approach to these things yet. Anyway, that mailx is 4670 changesets ahead of what you use. It is unfortunately not the place, date and time to grouch about the Debian punishment of small projects with fewest developers, the latest release is 5554 ahead (and enters unstable; in testing there is one that is 5204 changesets ahead). These are _my_ changesets: with a Dr. Hipp Fossil versioning philosophie the numbers could easily be doubled or tripled. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)