From: revcomninos@gmail.com
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Help with a sam cleanup script
Date: Wed, 21 Jul 2021 06:02:00 -0400 [thread overview]
Message-ID: <16268617200.bc6e62fCe.816450@composer.9fans.topicbox.com> (raw)
In-Reply-To: <A264D5E0EE22393D656BF3449DB6961B@prosimetrum.com>
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
Thank you all for your responses. I will carefully 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 script, but I am trying to learn sam's way of doing things.
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/\(‘‘\|’’\)/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
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T10b1d559ae7d981e-M20a4b0b4cf349f08a5bc0e9d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 2863 bytes --]
next prev parent reply other threads:[~2021-07-21 10:02 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 9:17 revcomninos
2021-07-21 9:24 ` Rodrigo G. López
2021-07-21 9:24 ` Rob Pike
2021-07-21 9:28 ` umbraticus
2021-07-21 10:02 ` revcomninos [this message]
2021-07-21 10:19 ` umbraticus
2021-07-21 10:49 ` revcomninos
2021-07-21 18:36 ` revcomninos
2021-07-21 18:47 ` revcomninos
2021-07-21 20:40 ` Silas McCroskey
2021-07-21 20:41 ` Silas McCroskey
2021-07-22 9:51 ` revcomninos
2021-07-21 9:52 ` Alexander Kapshuk
2021-07-21 10:09 ` umbraticus
2021-07-26 14:17 ` revcomninos
2021-07-26 21:07 ` ori
2021-07-27 3:07 ` Mark van Atten
2021-07-27 6:32 ` revcomninos
2021-07-27 6:33 ` revcomninos
2021-07-27 13:23 ` Iruatã Souza
2021-07-27 13:28 ` Mark van Atten
2021-07-27 13:39 ` kvik
2021-07-27 14:14 ` Jacob Moody
2021-07-28 11:25 ` Iruatã Souza
2021-08-03 15:04 ` fwrm via 9fans
2021-08-03 16:29 ` fwrm via 9fans
2021-08-03 16:30 ` revcomninos
2021-08-03 18:03 ` Charles Forsyth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16268617200.bc6e62fCe.816450@composer.9fans.topicbox.com \
--to=revcomninos@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).