zsh-users
 help / color / mirror / code / Atom feed
* How to capitalize last character of a string?
@ 2010-10-26 11:42 nix
  2010-10-26 11:56 ` András Nemes
  0 siblings, 1 reply; 7+ messages in thread
From: nix @ 2010-10-26 11:42 UTC (permalink / raw)
  To: zsh-users

Hi, as the subject says, any guidance?

TEST="word"

print "${(C)TEST[1]}$TEST[2,-1]"

Capitalizes the first character but somehow I could not come up with
solution other way.




^ permalink raw reply	[flat|nested] 7+ messages in thread
* How to capitalize last character of a string?
@ 2010-10-26 20:27 nix
  2010-10-26 20:49 ` Eric De Mund
  0 siblings, 1 reply; 7+ messages in thread
From: nix @ 2010-10-26 20:27 UTC (permalink / raw)
  To: zsh-users

Hi, as the subject says, any guidance?

TEST="word"

print "${(C)TEST[1]}$TEST[2,-1]"

Capitalizes the first character but somehow I could not come up with
solution other way.





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

end of thread, other threads:[~2010-10-26 21:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-26 11:42 How to capitalize last character of a string? nix
2010-10-26 11:56 ` András Nemes
2010-10-26 13:08   ` Mikael Magnusson
2010-10-26 20:27 nix
2010-10-26 20:49 ` Eric De Mund
2010-10-26 21:42   ` nix
2010-10-26 21:56     ` Linus Arver

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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