Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Truncate strings in array
- X-seq: zsh-users 21587
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Truncate strings in array
- Date: Sun, 22 May 2016 09:20:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=r5capuGw8dh1ciOUmv8ah6xSTyHAe8ZESXrvgSkeOmY=; b=rvMBRiUrBoYaxX7fvdkK8Mi2WzaESu76POyMlnr9upWydIRXutlvSgHxAhCSreLj0W khUX+hbXhlzXgPYZ7Q1zspbg/Tua0FyfVP9j3fGBuVGBFgcoAJibWPn1Uz/+9jAol+yG DC7GorGRL94bd3SmjHot40TYQFPgRy3x3lZcJzxZyPeFsw0NSShISldEHyYQrFsRWU3d GL4JnKh8yHciHaGEVf3RYcK1dgs+i0b1L2E9hhVYl0tl+iL6aPXfP4CMerO7wHTVGGyk eCq2ROBNAuS4eOWuzmzWCDTqPXY2RsTCw0+nD/pDPBLiGBGLwEep4nM2ejnnhTLEheTv yCgg==
- 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
Hello,
having array of strings, is it possible to nicely truncate the strings
to given length? Could iterate the array and do truncation, but maybe
there's a one liner?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author