From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay3.UU.NET ([192.48.96.8]) by hawkwind.utcs.utoronto.ca with SMTP id <23989>; Wed, 18 May 1994 11:43:41 -0400 Received: from uucp3.uu.net by relay3.UU.NET with SMTP (5.61/UUNET-internet-primary) id AA12567; Wed, 18 May 94 11:43:27 -0400 Received: from rexago8.UUCP by uucp3.uu.net with UUCP/RMAIL ; Wed, 18 May 1994 11:43:27 -0400 Received: by summitis.com (smail2.5) id AA16066; 18 May 94 11:28:51 EDT (Wed) Received: from summitis.com by rserv1.YYY; Wed, 18 May 1994 11:28 EDT Received: from cheetah by rexsrvr2.summitis.com (AIX 3.2/UCB 5.64/4.03) id AA68927; Wed, 18 May 1994 11:28:26 -0400 Received: by cheetah (AIX 3.2/UCB 5.64/4.03) id AA13025; Wed, 18 May 1994 11:28:24 -0400 From: hc05@summitis.com Message-Id: <9405181528.AA13025@cheetah> Subject: First character of selected space To: sam-fans@hawkwind.utcs.toronto.edu (Sam mailing list) X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Date: Wed, 18 May 1994 11:43:30 -0400 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 -------------------------------------------------------------------------------