-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ow Mun Heng wrote:
> Does anyone know how to go about escaping a "*" in a bash script?
> 
> I want to do the following
> 
> query="  select * from table where column1='something'   "
> 
> 

As you use the "" it is still a * in the $query, but you have to be
carefull when you use the variable.
Try something like  dbcommand "$query"  and it will still be a * in your
query

- --
wabu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFKNKSBbWbHb9PeLsRAk2mAJ4psxXuJdNLDUee/lZ3G/Ubr3LFJwCfZe9k
CCHlA2M3Dwbmbo5GrAjLCZc=
=YKY/
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list

Reply via email to