Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
joining array elements
- X-seq: zsh-users 9822
- From: Wataru Kagawa <wkagawa@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: joining array elements
- Date: Thu, 12 Jan 2006 10:22:48 +0900
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi all,
I am trying to join array elements together using a string separator
containing square brackets. For example, if I have,
usernames=( Bob Sara Tim )
I would like,
Bob[return]Sara[return]Tim
as an output (without the backslashes in front of the square
brackets). I started out with,
echo ${(j:\[return\]:)usernames}
and added extra backslashes, but that did not work for me. Help is
greatly appreciated.
Wataru Kagawa
Messages sorted by:
Reverse Date,
Date,
Thread,
Author