9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ed regular expressions in sam
@ 2021-07-20 10:17 revcomninos
  2021-07-20 10:32 ` Alex Musolino
  0 siblings, 1 reply; 11+ messages in thread
From: revcomninos @ 2021-07-20 10:17 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

In ed it is trivial to edit either side of a line such as changing the line,

I use sam and ed

to,

echo "I use sam and ed."

simply with,

g/.*/s//echo "&."/

I am trying to figure out how to do the same in sam. 


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te7fcdc06a68bb777-M760f05e7ade2bc65818fe6e1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1931 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-07-20 18:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-20 10:17 [9fans] ed regular expressions in sam revcomninos
2021-07-20 10:32 ` Alex Musolino
2021-07-20 11:00   ` revcomninos
2021-07-20 11:12     ` umbraticus
2021-07-20 13:06       ` Rob Pike
2021-07-20 13:45       ` revcomninos
2021-07-20 14:21         ` revcomninos
2021-07-20 14:31           ` Silas
2021-07-20 15:45             ` revcomninos
2021-07-20 18:32               ` Silas McCroskey
2021-07-20 18:57                 ` revcomninos

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).