From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FORGED_GMAIL_RCVD,FREEMAIL_FROM,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14058 invoked from network); 21 Jul 2021 09:17:22 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 21 Jul 2021 09:17:22 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id C485C3B37A for ; Wed, 21 Jul 2021 05:17:19 -0400 (EDT) (envelope-from bounce.mM81420cb8a514930c24cd6ad6.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id C34A82E0423B; Wed, 21 Jul 2021 05:17:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :message-id:date:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:subject:list-unsubscribe; s=dkim-1; bh= zT1qgqW7RwmvjwkxY8cd9s6TYYqbK4jN78nLKm+Dewc=; b=MbXqpvGEjp/l7lfX giywD0e2/0cijKc2tnNArJpV3XO8VRUko2mdRTk6f4cpIMeH6+qbUAGJ/+IrXlUb N/r5ygUqO+LYsSDPo2sXUUnh4uZGki6TILP0GkzdhfpL7j+Fmuftt2M5KBuIrQKL 1WHLyQtLtMpcQx+ECuVXvuEquo4= From: revcomninos@gmail.com To: 9fans <9fans@9fans.net> Message-Id: <16268590350.573C31.33295@composer.9fans.topicbox.com> Date: Wed, 21 Jul 2021 05:17:15 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16268590351.c7b083B.33295" Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 70b70ba0-ea04-11eb-ac95-2bb19134e1fa Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMTBiMWQ1NTlhZTdkOTgxZS1NODE0MjBjYjhhNTE0OTMwYzI0Y2Q2?= =?UTF-8?B?YWQ2Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Help with a sam cleanup script List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M81420cb8a514930c24cd6ad6:1:Q5tNDHmkJYZmd2w8vSRHMyKI4c1UyLLVVTx0Eya5z0E --16268590351.c7b083B.33295 Date: Wed, 21 Jul 2021 05:17:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In ed I have a cleanup script which I can apply to several files at once. T= he script removes things like blank lines and spaces between words. To run = it on a file or multiple files, I type this command: ed [name of file(s)] < cleanup-script I converted all the regular expressions in the file into sam regex format a= nd tried the same, but to no avail.=C2=A0 Here is a list of some of the com= mands: .x s/\*//g ,x/^ +/s/// ,x/ +$/s/// ,x/ +/s// / ,x/^$\n/d ,x/=E2=80=98=E2=80=98|=E2=80=99=E2=80=99/s//"/ ,x/=E2=80=9C|=E2=80=9D/s//"/ ,x/=E2=80=98|=E2=80=99/s//"/ ,x/^ +/s/// ,x/ +$/s/// ,x/ +/s// / ,x/^$\n/d ,x/=E2=80=98=E2=80=98|=E2=80=99=E2=80=99/s//"/ ,x/=E2=80=9C|=E2=80=9D/s//"/ ,x/=E2=80=98|=E2=80=99/s//"/ ,x/teh/c/the/ wq I am not even sure sam can do this, but if it can, I would appreciate some = guidance on how to do it.=C2=A0 ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M81420= cb8a514930c24cd6ad6 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --16268590351.c7b083B.33295 Date: Wed, 21 Jul 2021 05:17:15 -0400 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In ed I have a cleanup script which I can appl= y to several files at once. The script removes things like blank lines and = spaces between words. To run it on a file or multiple files, I type this co= mmand:
ed [name of file(s)] < cleanup-script
=
I converted all the regular expressions in the file into sam regex for= mat and tried the same, but to no avail.  Here is a list of some of th= e commands:
.x s/\*//g
,x/^ +/s///
,x/ +$/s///
,x/  +/s// /
,x/^$\n/d
,x/‘‘|’’/s//"/
,x/“|”/s//"/
,x/‘|’/s//"/
,x/^ +/s///
,x/ +$/s///
,x/  +/s// /
,x/^$\n/d
,x/‘‘|’’/s//"/
,x/“|”/s//"/
,x/‘|’/s//"/
,x/teh/c/the/
wq
I am not even sure sam can do this, but if it can, I wou= ld appreciate some guidance on how to do it. 


= --16268590351.c7b083B.33295--