From: hc05@summitis.com
To: sam-fans@hawkwind.utcs.toronto.edu (Sam mailing list)
Subject: First character of selected space
Date: Wed, 18 May 1994 11:43:30 -0400 [thread overview]
Message-ID: <9405181528.AA13025@cheetah> (raw)
I have a set of C identifiers for which I would like to make the first
letter capital, through a pipe to tr. The problem is selecting the
first character from the currently selected text, so I can pipe on it.
As an example, I want to take
id1, xl2,
rs4, a
and turn them into
Id1, Il2,
Is4, A
Is there a way to select the first character of each identifier so I
can pipe it to tr "[a-z]" "[A-Z]"?
Thanks,
Beirne
--
-------------------------------------------------------------------------------
Beirne Konarski | Reading maketh a full man, conference a
beirnek@summitis.com | ready man, and writing an exact man.
"Untouched by Scandal" | -- Francis Bacon
-------------------------------------------------------------------------------
next reply other threads:[~1994-05-18 15:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-05-18 15:43 hc05 [this message]
1994-05-18 17:42 ` hc05
1994-05-19 14:18 hc05
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=9405181528.AA13025@cheetah \
--to=hc05@summitis.com \
--cc=sam-fans@hawkwind.utcs.toronto.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).