Gentoo Archives: gentoo-user

From: Ow Mun Heng <Ow.Mun.Heng@×××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Escaping a "*" in bash script [SOLVED]
Date: Sun, 08 Oct 2006 10:36:47
Message-Id: 1160303277.15995.30.camel@neuromancer.home.net
In Reply to: [gentoo-user] Escaping a "*" in bash script by Ow Mun Heng
1 On Sun, 2006-10-08 at 18:13 +0800, Ow Mun Heng wrote:
2 > Does anyone know how to go about escaping a "*" in a bash script?
3 >
4 > I want to do the following
5 >
6 > query=" select * from table where column1='something' "
7 >
8
9 nevermind..
10
11 I did it like this
12 query=" select \" *\" from table where column1='something' "
13
14 and though it echoes back as
15 select "*" from....
16
17 when it gets to the SQL server, it's actually
18 select * from ....
19
20
21 oh well..
22 --
23 gentoo-user@g.o mailing list