Re: [netmod] Where can I use <CODE BEGINS> <CODE ENDS> ? - rfcstrip

Kent Watsen <kent+ietf@watsen.net> Mon, 30 March 2020 23:11 UTC

Return-Path: <010001712db73ec1-cc282864-9cb5-4b79-a8a6-da0e0eee0855-000000@amazonses.watsen.net>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 76EDC3A1550 for <netmod@ietfa.amsl.com>; Mon, 30 Mar 2020 16:11:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.004
X-Spam-Level:
X-Spam-Status: No, score=0.004 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EIHQnkr8PHUy for <netmod@ietfa.amsl.com>; Mon, 30 Mar 2020 16:11:57 -0700 (PDT)
Received: from a48-92.smtp-out.amazonses.com (a48-92.smtp-out.amazonses.com [54.240.48.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9D1633A1544 for <netmod@ietf.org>; Mon, 30 Mar 2020 16:11:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1585609916; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=PZeUqFc5igWkyI6uanBf6IA38LTL23WOSv+RjjiULr8=; b=dG40U9jBtsR6yVTgtTiObVc1x0c4lEEJmxL37UPVHp4XXm0iiVmyZZH1ZTeTyGfi 7tSCuKeoR2HgliBwTmEhqKqIhdcHmxh8EqhVOsqjN/o+kPeYEBJTFznTimjJ719mHM1 rm+gFntlY+RQKBe3MHAirUCN7i0FxgXb+P7giX9U=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <010001712db73ec1-cc282864-9cb5-4b79-a8a6-da0e0eee0855-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_F052FAA7-A05B-4743-83B8-B8494E0ABED6"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Mon, 30 Mar 2020 23:11:56 +0000
In-Reply-To: <DB7PR07MB4011BBD7854EE286A76CAB28F0CB0@DB7PR07MB4011.eurprd07.prod.outlook.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
To: =?utf-8?Q?Bal=C3=A1zs_Lengyel?= <balazs.lengyel@ericsson.com>
References: <DB7PR07MB4011BBD7854EE286A76CAB28F0CB0@DB7PR07MB4011.eurprd07.prod.outlook.com>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.03.30-54.240.48.92
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/_og5L0Bw8XKTfWm96rWteKltHxk>
Subject: Re: [netmod] Where can I use <CODE BEGINS> <CODE ENDS> ? - rfcstrip
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Mar 2020 23:11:59 -0000


> On Mar 30, 2020, at 12:10 PM, Balázs Lengyel <balazs.lengyel@ericsson.com> wrote:
> 
> Hello Kent, 
> Sorry for not providing a clear pointer to my work. As you have already found it, I just include it here for reference to others: https://github.com/BalazsLengyel/rfcstrip <https://github.com/BalazsLengyel/rfcstrip>
> I assume ggrep is the gnu grep ? Maybe we should make that a variable for grep like we have for AWK=awk

Yes, and so you don’t feel isolated, please note (Martin) that I have to use “AWK=gawk” on MacOS as well…this has nothing to do with Balazs’s recent change.


> I do not see the additional ^@ at EOF.  I tested it on cygwin, which is mostly GNU compatible.
> This is how my file ends
>  
> 3c 2f 69 6e 73 74 61 6e 63 65 2d 64 61 74 61 2d 73 65 74 3e 00 ---- </instance-data-set>

I’d say to “please test on MacOS”, but it seems that Martin’s commit from today no longer contains that `grep` call: https://github.com/mbj4668/rfcstrip/blob/mbj/artwork/rfcstrip <https://github.com/mbj4668/rfcstrip/blob/mbj/artwork/rfcstrip>



BTW, Martin, running mbj/artwork on MacOS:

WITH AWK=awk:

$ ~/Code/GitHub/mbj4668/rfcstrip/rfcstrip -a draft-ietf-netmod-yang-instance-file-format-10.xml 
awk: cmd. line:13: warning: regexp escape sequence `\"' is not a known regexp operator
example1.xml.folded: 82 lines.
awk: cmd. line:13: warning: regexp escape sequence `\"' is not a known regexp operator
example2.xml: 32 lines.
awk: cmd. line:13: warning: regexp escape sequence `\"' is not a known regexp operator
example3.json: 26 lines.


WITH AWK=gawk:

$ ~/Code/GitHub/mbj4668/rfcstrip/rfcstrip -a draft-ietf-netmod-yang-instance-file-format-10.xml 
gawk: cmd. line:13: warning: regexp escape sequence `\"' is not a known regexp operator
example1.xml.folded: 82 lines.
gawk: cmd. line:13: warning: regexp escape sequence `\"' is not a known regexp operator
example2.xml: 32 lines.
gawk: cmd. line:13: warning: regexp escape sequence `\"' is not a known regexp operator
example3.json: 26 lines.


Kent // contributor