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 |