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=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,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 14848 invoked from network); 21 Jul 2021 09:24:48 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 21 Jul 2021 09:24:48 -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 01FC73B772 for ; Wed, 21 Jul 2021 05:24:48 -0400 (EDT) (envelope-from bounce.mM346a55911fc933521d3d3f07.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 00CC72E0506C; Wed, 21 Jul 2021 05:24:48 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=upKIUB2M header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=rodrigosloop@gmail.com smtp.helo=mail-qt1-f169.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1626859487; bh=aInnOeoW0qW5j2qN 4a7oI/337OlfVMOSZ4Hiu0OnoR0=; b=YeCXR7oa3Zv6Yb5Ez841TnOEUH+FeWNV wfh+L07Z4OKRIHSYKmpYrcf/9xVt0y405LAPzyZcw0ueX9yPBHrVKeQjXQ54S76u eHWPE9d2FEfpt++VYMmRzI4NrocrSF+OJ5ht7oFsENRyd7Q7z+vyyQdhUCUIvX0S KQVziRtuJEo= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1626859487; b=NP1fzFqXsVU2FZV3x8kk590VpM+gbWu+FOwmNgcyNkreLFbneS 4z70JZypDAd58SpzfCtXElDKxiLSf2NugMdu/QJOKfV+/nenbOFT4mKZqvBrtQ4h VujK1aYSdo+F249eh5XCn0l1eoUREcQtey9nKVR2R90hf1MVt6WrRLtmo= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=upKIUB2M header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=rodrigosloop@gmail.com smtp.helo=mail-qt1-f169.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=upKIUB2M header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.160.169 (mail-qt1-f169.google.com); spf=pass smtp.mailfrom=rodrigosloop@gmail.com smtp.helo=mail-qt1-f169.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=UArJMTDz; x-me-sender=none; x-ptr=pass smtp.helo=mail-qt1-f169.google.com policy.ptr=mail-qt1-f169.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=zuacz41c/0kS3JrzID+brIBGQVGmMW9t22DQ6BV4KHU=; b=gBIn0kJNwrXO f6R/fbjaodR7T0/a6YizI5n9G7nuAuKtz7My38niosO05//kT0LS0IjRXtAjG5DA RIAm2Y+ETYvi3p9Qtp7ayLbmAmw4WX6H064p7Jso1Xj4pcOMgTELknIhmU6QDqd3 gyuGY4n6glEHw9QWy3RNsl0hVNjXiMI= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id EA3612E04C66 for <9fans@9fans.net>; Wed, 21 Jul 2021 05:24:38 -0400 (EDT) (envelope-from rodrigosloop@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 760190A4D19; Wed, 21 Jul 2021 05:24:38 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1626859478; b=LPSzr9dwwCn4mFtvMSPucOpJivtavOmJpZ6ldmjc3nPsgDtAg7 xcbv4iSlxqXXLsbgs6mXj8WnOdbCV/PRqVrAvu4HcRH6wa2n6Jx4+nbWj4CrZMI7 ViposTkRLa/cWjxikOfFkKYnmccAM9t/nXJUlvt+GoBgKIfbHve0TZp2bFViHvXt TYPRqa8o0bW1sBo8wu79F09t2rStFQ9sNZAhB0A/o1hBLo58nbWyRBIYxKlcKuUA slEHmh8H0ORW/AWRskng/nDc62ImRzECt8JneZmY1AdhkFgivHqVg4bGBCc72I6I f7TdakqqIUZwgDSOHhFC2s8tqSsbYAj4ykxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1626859478; bh=oUI0sYyaRdhaUfqT7YIXVUe6rpHiuUwmYBERDmX4zR8=; b=Ov+1OaYGdk/S ZTEOVp52ASSpyrNjgjtBwgTuI6QAIAEn0h2DxoSPlQn87ihsniFIo3iLaDR8IFhg asUD8JUaeKCfncwa/iE+KueByYrZnNB3hUZkjMoSoi4j66eHOqVWkgGYivuA7r4D Oshef0hh0arf8Uhrt8WcG7EroBWEQsr4frevKyc5lqPMBsG1gEnjv9bun/pgKEMk UHPqoPWJ0ChbT063sbuZvgJ0WC2oYzjZCHkPv3smFVEbZteOvyCyylWIb1hdbhyc ytX1Cj2qfyCrvbI/00tu+WDSzVzNv593gguS4cPpKvg9PAxbH+rEHjOLM6wyMh3h /23krI9XXA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=upKIUB2M header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.160.169 (mail-qt1-f169.google.com); spf=pass smtp.mailfrom=rodrigosloop@gmail.com smtp.helo=mail-qt1-f169.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=UArJMTDz; x-me-sender=none; x-ptr=pass smtp.helo=mail-qt1-f169.google.com policy.ptr=mail-qt1-f169.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeefgdduudekucdltddurdegudelrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucenucfjughrpeggfhgjhfffkffuvfgtsegrtderredttdejnecuhfhrohhmpeftohgu rhhighhopgfirdgpnfpkphgviicuoehrohgurhhighhoshhlohhophesghhmrghilhdrtg homheqnecuggftrfgrthhtvghrnhepvedttdetteevtdehtdevffffhfdvleekieefvdeu hfevteeutedtieegffevieeinecuffhomhgrihhnpehtohhpihgtsghogidrtghomhenuc fkphepvddtledrkeehrdduiedtrdduieelnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehinhgvthepvddtledrkeehrdduiedtrdduieelpdhhvghlohepmhgrihhlqd hqthduqdhfudeiledrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoehrohgurhhi ghhoshhlohhophesghhmrghilhdrtghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'rodrigosloop@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="rodrigosloop@gmail.com"; helo=mail-qt1-f169.google.com; client-ip=209.85.160.169 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 21 Jul 2021 05:24:38 -0400 (EDT) (envelope-from rodrigosloop@gmail.com) Received: by mail-qt1-f169.google.com with SMTP id w26so1449398qto.9 for <9fans@9fans.net>; Wed, 21 Jul 2021 02:24:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=oUI0sYyaRdhaUfqT7YIXVUe6rpHiuUwmYBERDmX4zR8=; b=UArJMTDzfMIUXXyLZ32TfRxEMs7eTO9cUBWuHYi6fcaTa8f5osPXrKy83QoMFm40yx lm8OaaJY2vy8BHzHTaPIlGqvHPaDFlnKD6Dq8PHqILQGqKWJF7n1FfLb+BlIABM7cplM 6EzfN/M6ZUKpm9vXgVLawgRWN0VUyb5y8/R+L0nWkjRhKqwjVZosEq5C/Ouym1F6OO7f YQWy0XJK9V//4PO8Z5JAeodIhxnS0bN4FOMSsUOYtBJQpDsbL7/XKExMSvoBNRlHGNoc t5lmqrqiaZUVkzBxCLInkAyBH6I5Fo8TzwuI1of7AVg9FuZIgGUSctcIJ/4E/V2sm2u9 JFKA== X-Gm-Message-State: AOAM533lG5fMDnvqpW+3pxeUfn8O36aPGeBJrEHjStN9XICzufzAqrxH vddNjUJAN1at22F43CtPndUIu2pIb3U81ubHgUx7MUXV X-Google-Smtp-Source: ABdhPJzwcbVojdLRUL7Z0+j09nfQjo8XogtkhvxxyK4qo9eKlYsbgfrtoCRnttXS0CZ5MTcFO8xbB2p4gu9EffnHZa8= X-Received: by 2002:ac8:5553:: with SMTP id o19mr30456090qtr.22.1626859477909; Wed, 21 Jul 2021 02:24:37 -0700 (PDT) MIME-Version: 1.0 References: <16268590350.573C31.33295@composer.9fans.topicbox.com> In-Reply-To: <16268590350.573C31.33295@composer.9fans.topicbox.com> From: =?UTF-8?Q?Rodrigo_G=2E_L=C3=B3pez?= Date: Wed, 21 Jul 2021 11:24:25 +0200 Message-ID: Subject: Re: [9fans] Help with a sam cleanup script To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary="00000000000047c3f305c79ebd2f" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 7b69a7dc-ea05-11eb-bdf2-963d34a34b0c Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMTBiMWQ1NTlhZTdkOTgxZS1NMzQ2YTU1OTExZmM5MzM1MjFkM2Qz?= =?UTF-8?B?ZjA3Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M346a55911fc933521d3d3f07:1:PHPBo9fFx7nQboIX50bF-IYoa7jM4amrwfclWgN6ZAA --00000000000047c3f305c79ebd2f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable try with ssam(1). % ssam -f thatscriptofyours somefile -rodri On Wed, Jul 21, 2021, 11:17 AM wrote: > In ed I have a cleanup script which I can apply to several files at once. > The script removes things like blank lines and spaces between words. To r= un > 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 > and tried the same, but to no avail. Here is a list of some of the > commands: > > .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. > > > *9fans * / 9fans / see discussions > + participants > + delivery options > Permalink > > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M346a5= 5911fc933521d3d3f07 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --00000000000047c3f305c79ebd2f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
try with ssam(1).

% ssam -f thatscriptofyours somefile


-rodri

On Wed, Jul 21, 2021, 11:17 AM <revcomninos@gmail.com> wrote:
In ed I have a cleanup script which I can apply t= o several files at once. The script removes things like blank lines and spa= ces between words. To run it on a file or multiple files, I type this comma= nd:
ed [name of file(s)] < cleanup-script
I converted all the regular expressions in the file into sam regex format = and tried the same, but to no avail.  Here is a list of some of the co= mmands:
.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 woul= d appreciate some guidance on how to do it. 


= --00000000000047c3f305c79ebd2f--