9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] sam command language question
@ 2012-08-20 11:12 Steve Simon
  2012-08-20 11:55 ` Rudolf Sykora
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Steve Simon @ 2012-08-20 11:12 UTC (permalink / raw)
  To: 9fans

Tis the season for exotic sam command language questions,
though mine is not that exotic.

I want to edit some xml (yes I know) and capitalise all the labels
in it. I only want to do this once so I don't care that it will
envoke tr thousands of times and take a minuite or so.

This is what I tried:

	,x/label="[^"]+"/ {
		x/ [a-z]/ | tr a-z A-Z
	}

sadly the inner 'x' searches onward in the file and not in
the selection (dot) generated by the outer 'x'.

I tried a few more random commands but nothing very sensible,
anyone any ideas?

Seems somthing that should be easy...

-Steve



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

end of thread, other threads:[~2012-08-20 13:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-20 11:12 [9fans] sam command language question Steve Simon
2012-08-20 11:55 ` Rudolf Sykora
2012-08-20 12:05 ` Rudolf Sykora
2012-08-20 12:15 ` Rudolf Sykora
2012-08-20 12:25   ` Steve Simon
2012-08-20 13:21     ` Rudolf Sykora

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