sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: sqweek <sqweek AT gmail.com>
- To: "SM Discuss" <sm-discuss AT lists.ibiblio.org>
- Subject: Re: [SM-Discuss] config_query_multi
- Date: Wed, 26 Apr 2006 19:16:49 +0800
On 26/04/06, Treeve Jelbert <treeve AT scarlet.be> wrote:
> I am trying to use the config_query_multi function. It returns a space
> separated list. I need a comma separated list with no leading spaces.
>
> Can anyone suggest a suitable transformation?
>
> I tried XX=${XX/ /,}
> but this does not give the required result
Try XX=${XX// /,}. Stripping leading spaces is a bit more of a pain,
you need to repetitively do XX=${XX# } in bash. But if you're willing
to fork out to sed, XX=`echo $XX |sed 's/^ *//'`
(sorry for the double post Treeve, fricken gmail not defaulting to
reply-to-all)
-
[SM-Discuss] config_query_multi,
Treeve Jelbert, 04/26/2006
- Re: [SM-Discuss] config_query_multi, sqweek, 04/26/2006
Archive powered by MHonArc 2.6.24.