[CentOS] script question

Kwan Lowe kwan.lowe at gmail.com
Fri Jun 11 14:06:57 UTC 2010


On Fri, Jun 11, 2010 at 10:04 AM, Jerry Geis <geisj at pagestation.com> wrote:

> Hi all,
>
>
> in a script if I have:
> VERSION="3.2.0"
>
> I can do:
> echo jj-$VERSION-jj
> and get jj-3.2.0-jj
>
> however if I do:
> echo jj_$VERSION_jj
> I get jj_
>
> How do I get the $VERSION to work with the underscores like the dashes do.
>

You can use ${VERSION} to separate it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100611/d16a4ba7/attachment.html>


More information about the CentOS mailing list