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 18923 invoked from network); 21 Jul 2021 10:02:11 -0000 Received: from tb-ob21.topicbox.com (173.228.157.67) by inbox.vuxu.org with ESMTPUTF8; 21 Jul 2021 10:02:11 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob21.topicbox.com (Postfix) with ESMTP id 89060373CF for ; Wed, 21 Jul 2021 06:02:09 -0400 (EDT) (envelope-from bounce.mM20a4b0b4cf349f08a5bc0e9d.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 6E4B72E086F9; Wed, 21 Jul 2021 06:02:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :subject:message-id:references:in-reply-to:date:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=UoWjv+/tokAGA9uM2kSmrMCFh+sKk91aiLK5v6VgDh0=; b=AWozh3zmdoYI +fA1UyJZh72bQCIewoREnQY/f4Ez0W1JbiltaNQVn4GGeCAhXta8UGbMQoMQmK4E O+Fr5w64l2E3HBjxJOPJozZnLMUMK4YpvZUK0E2VVLeTr22fSxDEerTjMvpXAV6s 2pxly5CGBcW/LaGyLZPtXR8tmYMzEOM= From: revcomninos@gmail.com To: 9fans <9fans@9fans.net> Subject: Re: [9fans] Help with a sam cleanup script Message-Id: <16268617200.bc6e62fCe.816450@composer.9fans.topicbox.com> References: In-Reply-To: Date: Wed, 21 Jul 2021 06:02:00 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16268617201.F1f88f.816450" Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: b1339e90-ea0a-11eb-ba5f-ac1e222d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UMTBiMWQ1NTlhZTdkOTgxZS1NMjBhNGIwYjRjZjM0OWYwOGE1YmMw?= =?UTF-8?B?ZTlkPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M20a4b0b4cf349f08a5bc0e9d:1:g50bJH-A9Tdr7gbxfOw8glAMzVneW73tHwYXNI1Aqj4 --16268617201.F1f88f.816450 Date: Wed, 21 Jul 2021 06:02:00 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you all for your responses. I will carefully study the suggestions=C2= =A0 provided. sam is new to me and I am trying hard to learn it.=C2=A0 Ther= e are obvious errors in the script I provided and I apologise for those. I = could as Rob suggested simply apply the ed script, but I am trying to learn= sam's way of doing things.=C2=A0 As for % ssam -f thatscriptofyours somefile It gave me this error: bash: fg: %: no such job Here is the ed script : g/\*/s///g # g/[0-9]/s///g g/ *$/s/// g/ */s// /g g/\(=E2=80=98=E2=80=98\|=E2=80=99=E2=80=99\)/s//"/g g/\(=E2=80=9C\|=E2=80=9D\)/s//"/g g/\(=E2=80=98\|=E2=80=99\)/s//'/g g/\\p/s//\ \ \ /gp g/\\b/s//\ \ \ /gp g/^ */s/// v/./.,/./-1j # Replace two or more blank lines with a single blank line in Ed wq ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M20a4b= 0b4cf349f08a5bc0e9d Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --16268617201.F1f88f.816450 Date: Wed, 21 Jul 2021 06:02:00 -0400 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you all for your responses. I will caref= ully study the suggestions  provided. sam is new to me and I am trying= hard to learn it.  There are obvious errors in the script I provided = and I apologise for those. I could as Rob suggested simply apply the ed scr= ipt, but I am trying to learn sam's way of doing things. 

As for

= % ssam = -f thatscriptofyours somefile

=
It gave me this error:

b= ash: fg: %: no such job

Here is the= ed script :
g/\*/s///g
# g/[0-9]/s///g
g/  *$/s///
g/   */s// /g
g/\(‘‘\|’’\)/s//"/g
g/\(“\|”\)/s//"/g
g/\(‘\|’\)/s//'/g
g/\\p/s//\
\
\
/gp
g/\\b/s//\
\
\
/gp
g/^  */s///
v/./.,/./-1j
# Replace two or more blank lines with a single blank line in Ed
wq



= --16268617201.F1f88f.816450--