Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to capitalize last character of a string?
- X-seq: zsh-users 15497
- From: nix@xxxxxxxxxxxxxxxx
- To: zsh-users@xxxxxxx
- Subject: How to capitalize last character of a string?
- Date: Tue, 26 Oct 2010 23:27:46 +0300
- Importance: Normal
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author