Gentoo Archives: gentoo-user

From: Mark <znxster@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Escaping a "*" in bash script
Date: Sun, 08 Oct 2006 19:27:43
Message-Id: 169ffc030610081220h6df7cc39s623f68a06c846bbe@mail.gmail.com
In Reply to: [gentoo-user] Escaping a "*" in bash script by Ow Mun Heng
1 On 08/10/06, Ow Mun Heng <Ow.Mun.Heng@×××.com> wrote:
2 > Does anyone know how to go about escaping a "*" in a bash script?
3 >
4 > I want to do the following
5 > query=" select * from table where column1='something' "
6
7 Well one you can use different quotes:
8 query='select * from table'
9
10 Or you can \* it.
11 query="select \* from table"
12
13 Stepping away from bash and into MySQL for a second, why are you
14 selecting *? See google for the debates :)
15
16 Thanks
17 Mark
18 --
19 gentoo-user@g.o mailing list