zsh-users
 help / color / mirror / code / Atom feed
* joining array elements
@ 2006-01-12  1:22 Wataru Kagawa
  2006-01-12  1:41 ` Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: Wataru Kagawa @ 2006-01-12  1:22 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-01-12 15:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12  1:22 joining array elements Wataru Kagawa
2006-01-12  1:41 ` Bart Schaefer
2006-01-12  1:59   ` Wataru Kagawa
2006-01-12  5:17     ` Wataru Kagawa
2006-01-12  9:10       ` Peter Stephenson
2006-01-12 11:44         ` Wataru Kagawa
2006-01-12 11:54           ` Peter Stephenson
2006-01-12 12:20             ` Wataru Kagawa
     [not found]               ` <10756.1137069559@logicacmg.com>
2006-01-12 13:01                 ` Wataru Kagawa
2006-01-12 13:10               ` Peter Stephenson
2006-01-12 15:16                 ` Wataru Kagawa

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).