1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Ow Mun Heng wrote: |
5 |
> Does anyone know how to go about escaping a "*" in a bash script? |
6 |
> |
7 |
> I want to do the following |
8 |
> |
9 |
> query=" select * from table where column1='something' " |
10 |
> |
11 |
> |
12 |
|
13 |
As you use the "" it is still a * in the $query, but you have to be |
14 |
carefull when you use the variable. |
15 |
Try something like dbcommand "$query" and it will still be a * in your |
16 |
query |
17 |
|
18 |
- -- |
19 |
wabu |
20 |
-----BEGIN PGP SIGNATURE----- |
21 |
Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux) |
22 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
23 |
|
24 |
iD8DBQFFKNKSBbWbHb9PeLsRAk2mAJ4psxXuJdNLDUee/lZ3G/Ubr3LFJwCfZe9k |
25 |
CCHlA2M3Dwbmbo5GrAjLCZc= |
26 |
=YKY/ |
27 |
-----END PGP SIGNATURE----- |
28 |
-- |
29 |
gentoo-user@g.o mailing list |