From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 66c4e0b4 for ; Wed, 22 Jan 2020 07:22:15 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 836099C217; Wed, 22 Jan 2020 17:22:13 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 8660D9C14A; Wed, 22 Jan 2020 17:21:54 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 201DC9C14A; Wed, 22 Jan 2020 17:21:52 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id 952ED9C102 for ; Wed, 22 Jan 2020 17:21:51 +1000 (AEST) X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 00M7Llpa021032 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Jan 2020 00:21:48 -0700 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 00M7Ll5D021031; Wed, 22 Jan 2020 00:21:47 -0700 From: arnold@skeeve.com Message-Id: <202001220721.00M7Ll5D021031@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Wed, 22 Jan 2020 00:21:47 -0700 To: tuhs@tuhs.org, dfawcus+lists-tuhs@employees.org References: <202001122034.00CKYQ39571239@darkstar.fourwinds.com> <202001122044.00CKiUNV573279@darkstar.fourwinds.com> <202001122137.00CLbMrw582813@darkstar.fourwinds.com> <20200121215746.GB25322@clarinet.employees.org> In-Reply-To: <20200121215746.GB25322@clarinet.employees.org> User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [TUHS] Tech Sq elevator (Was: screen editors) [ really I think efficiency now ] 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" > On Sat, Jan 18, 2020 at 09:45:22AM -0600, Michael Parson wrote: > > > > And here, understanding the model is important, namely, grep is the > > wrong tool for searching/parsing JSON output. Dealing with JSON from the > > shell, you should use jq. I've been dragged kicking and screaming into > > dealing with JSON, and about all I can say about it is, I like it about > > this >< much more than XML. :) Derek Fawcus wrote: > If push comes to shove, one can always use xmlawk (xml extension for gawk) > to beat the latter in to submission. There is also a simple JSON extension for gawk in the gawkextlib project that can suck in a single JSON record and turn it into a gawk multidimensional array, and vice versa. (Gawk has true multidimensional arrays and isarray/typeof functions so that you can easily traverse such an array.) (Toot!) Arnold