Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strip a Carriage-Return from a string/variable
- X-seq: zsh-users 14321
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Strip a Carriage-Return from a string/variable
- Date: Tue, 25 Aug 2009 21:52:51 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns9C72ADE69DF67zzappergmailcom@xxxxxxxxxxxx> <200908251612.n7PGCkki001668@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Peter Stephenson wrote in news:200908251612.n7PGCkki001668@xxxxxxxxxxxxxx:
> zzapper wrote:
> % foo=$'bar\r'
> % print $foo | xxd
> 0000000: 6261 720d 0a bar..
> % print ${foo%%$'\r'} | xxd
> 0000000: 6261 720a bar.
>
Thanks Peter
And anywhere in the variable/any number of times?
--
zzapper
Messages sorted by:
Reverse Date,
Date,
Thread,
Author