9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] comment out the dot with sam
@ 2004-01-29 15:44 Matthias Teege
  2004-01-29 15:52 ` Axel Belinfante
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matthias Teege @ 2004-01-29 15:44 UTC (permalink / raw)
  To: 9fans

Moin,

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

Matthias


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

* Re: [9fans] comment out the dot with sam
  2004-01-29 15:44 [9fans] comment out the dot with sam Matthias Teege
@ 2004-01-29 15:52 ` Axel Belinfante
  2004-01-29 16:00 ` rog
  2004-01-29 16:02 ` rog
  2 siblings, 0 replies; 4+ messages in thread
From: Axel Belinfante @ 2004-01-29 15:52 UTC (permalink / raw)
  To: 9fans

In my unix sam it's:

s/(.*)/\/* & *\//

Axel.

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




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

* Re: [9fans] comment out the dot with sam
  2004-01-29 15:44 [9fans] comment out the dot with sam Matthias Teege
  2004-01-29 15:52 ` Axel Belinfante
@ 2004-01-29 16:00 ` rog
  2004-01-29 16:02 ` rog
  2 siblings, 0 replies; 4+ messages in thread
From: rog @ 2004-01-29 16:00 UTC (permalink / raw)
  To: 9fans

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



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

* Re: [9fans] comment out the dot with sam
  2004-01-29 15:44 [9fans] comment out the dot with sam Matthias Teege
  2004-01-29 15:52 ` Axel Belinfante
  2004-01-29 16:00 ` rog
@ 2004-01-29 16:02 ` rog
  2 siblings, 0 replies; 4+ messages in thread
From: rog @ 2004-01-29 16:02 UTC (permalink / raw)
  To: 9fans

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

oops, that'll teach me not to test things.

i meant:

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



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

end of thread, other threads:[~2004-01-29 16:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29 15:44 [9fans] comment out the dot with sam Matthias Teege
2004-01-29 15:52 ` Axel Belinfante
2004-01-29 16:00 ` rog
2004-01-29 16:02 ` rog

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