* Re: capitalisation
@ 1994-05-19 17:54 Steve_Kilbane
0 siblings, 0 replies; 4+ messages in thread
From: Steve_Kilbane @ 1994-05-19 17:54 UTC (permalink / raw)
To: sam-fans
> actually it only works for a and z. For all letters try...
>
> ,x/[a-zA-Z0-9_]+/ -#0;+#1 | tr '[a-z]' '[A-Z]'
this depends on which version of unix you're using (or whether you're using
plan 9, i guess - does it have tr?) - but that's just details in tr itself;
the important thing is the sam command that feeds it.
steve
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: capitalisation
@ 1994-05-19 17:57 pete
0 siblings, 0 replies; 4+ messages in thread
From: pete @ 1994-05-19 17:57 UTC (permalink / raw)
To: andrew, sam-fans, steve
> actually it only works for a and z. For all letters try...
Depends upon how broken your version of `tr' is. Sensible ones recognise a-z
as a character class.... daft ones don't.
pete
^ permalink raw reply [flat|nested] 4+ messages in thread
* capitalisation
@ 1994-05-19 15:55 Steve_Kilbane
0 siblings, 0 replies; 4+ messages in thread
From: Steve_Kilbane @ 1994-05-19 15:55 UTC (permalink / raw)
To: sam-fans
> yes, i made a mistake transcribing the command. the comma
> should be a semicolon. how you got all capital letters in your
> version, though, i don't understand.
well, that's what happens. I 'new' a window, type 'this is a test line\n'
into it, and then do ",x/[a-z]+/-#0,+#1|tr '[a-z]' '[A-Z]'", and i get
a whole line capitalised ('scuse the SVR4 tr...)
>
> ,x/[a-zA-Z0-9_]+/ -#0;+#1 | tr a-z A-Z
>
now, this *does* work, and definitely worth remembering....
steve
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: capitalisation
@ 1994-05-19 15:24 Andrew Higham
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Higham @ 1994-05-19 15:24 UTC (permalink / raw)
To: Steve_Kilbane, sam-fans
> >
> > ,x/[a-zA-Z0-9_]+/ -#0;+#1 | tr a-z A-Z
> >
>
> now, this *does* work, and definitely worth remembering....
actually it only works for a and z. For all letters try...
,x/[a-zA-Z0-9_]+/ -#0;+#1 | tr '[a-z]' '[A-Z]'
---------------------------------------------------------------------------
Andrew Higham
Edinburgh Portable Compilers, 17 Alva St., Edinburgh, EH2 4PH, Scotland, UK
andrew@epc.ed.ac.uk phone: +44 31 225 6262 fax: +44 31 225 6644
---------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-05-19 17:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-05-19 17:54 capitalisation Steve_Kilbane
-- strict thread matches above, loose matches on Subject: below --
1994-05-19 17:57 capitalisation pete
1994-05-19 15:55 capitalisation Steve_Kilbane
1994-05-19 15:24 capitalisation Andrew Higham
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).