Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Title Case a Textified String
- X-seq: zsh-users 14916
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
- Subject: Re: Title Case a Textified String
- Date: Thu, 11 Mar 2010 14:45:34 +0100
- Cc: zzapper <david@xxxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=cps7nbIiUim29BN6ZNq4Yib+OaWXQqUaakkVLZ+XEGw=; b=nyu57YRdUjwOtU4KSH0k08Jb8p8/uLdwP/hvzFR+YVeAYBZ5XsGZ06BmYJFpH4bS9L qic+4SCSbY8jHUT1aVjHlJgs8LjDqbPw+0rjeZvVvUk/cqsHhlj+e4zBRCpZ78oUOwVg UMW7dZiapZJkA1XdzvmbxNZkmx/FliuNKh75c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=NKzpJnGt+2qvjONSlhJ9M2Wg7yfKHhsKEHBhuf41E2QQw4OEz9Swd9GZXvww4748Jm XspMwvy2QrI4lXsgNFjLI4ok298RXzCUdOllmhYHs6PvcIEKIwt9li7vUijzPqyEIHCa NlP1jOgWEnx1msq4veFUYuT3flp4zhKBbLCEQ=
- In-reply-to: <4B98F1D6.2020502@xxxxxxxxx>
- 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
- References: <Xns9D38815866DD0zzappergmailcom@xxxxxxxxxxxx> <4B98F1D6.2020502@xxxxxxxxx>
On 11 March 2010 14:36, Radoulov, Dimitre <cichomitiko@xxxxxxxxx> wrote:
> On 11/03/2010 13.43, zzapper wrote:
>>
>> Hi
>> I want to convert a textified string to a Title Case Phrase
>>
>> eg
>> fred-goat-dog.jpg to Fred Goat Dog
>>
>
> % print ${${(Cs:-:):-fred-goat-dog.jpg}%.*}
> Fred Goat Dog
Okay, yours has the most smileys, so I guess you win this round.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author