9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] comment out the dot with sam
Date: Thu, 29 Jan 2004 16:00:16 +0000	[thread overview]
Message-ID: <cb8864ac8d3e7170dd27ea6c6b8d1e20@vitanuova.com> (raw)
In-Reply-To: <531b09e08f8e40793fc029bc094765e6@mteege.de>

> I try to comment out the dot in sam. How do I
> express s/(.*)/\/\* $1 \*\// in sam command
> language?

s:(.|\n)*:/* \1 */:

or
{
	i:/* :
	a: */:
}

(does anyone else feel they want to compact {} commands onto one
line?)



  parent reply	other threads:[~2004-01-29 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-29 15:44 Matthias Teege
2004-01-29 15:52 ` Axel Belinfante
2004-01-29 16:00 ` rog [this message]
2004-01-29 16:02 ` rog

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=cb8864ac8d3e7170dd27ea6c6b8d1e20@vitanuova.com \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /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).