Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh equivalent to string manipulation with offset and length
- X-seq: zsh-users 13351
- From: xulxer <xulxer@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: zsh equivalent to string manipulation with offset and length
- Date: Mon, 20 Oct 2008 13:15:06 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:subject:message-id :mime-version:content-type:content-disposition:user-agent:from; bh=PRqhqlG9oD/wAy2Ql7vhbdxEEV0eoaFha2NcdWTy4sE=; b=flHGOMFyU+BUQRzum4mgSostcxDNM/2CASDs+xTHNKmqXTDYmjEtkZ4Xu4lL1iNI/i mYvpIeoSSjzrqoSHhutUzDqAawyz/rhKEmmaeRidJxmV5lOFcYFjbQtSzaqMrwCVGDcE zImOP5oSP+72oLF5sj888N1eZsuLVnSIoGU08=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:subject:message-id:mime-version:content-type :content-disposition:user-agent:from; b=CHs8cxZzWL3Q7doq3Z9wobNaTfUOL9o2yPM8qMiuFY0+c2yW3+8LtQPGe4YJrOeu20 JP23tqWeDgzdXbCSYguESG/9Xg0BAvt0XBqeXlFPWfuin1uUxZikc4E7ZPHhUEhiV1Wo Qhljybk2+a4gxHohsH7hh9qvYZ0OyN+FGyA88=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi,
if have searched the manuals for hours now and didn't find anything
useful.
Say
string="abcdefghijklmnopqrstuvwxyz"
and i want to echo string from position 10 to 15. In bash i could do:
echo ${string:10:5}
but not in zsh? What is the zsh equivalent? This sort of string
manipulation is so widely used, why not make it the default in zsh, too?
Kind regards and thanks for any help
Chris
Messages sorted by:
Reverse Date,
Date,
Thread,
Author