The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to ignore * (asterisk) in a variable
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to ignore * (asterisk) in a variable
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-05-2008
fabtagon
Registered User
Join Date: Apr 2008
Location: European Union/Germany
Posts: 189
Quote:
sqlrow=$(db2 +c -x fetch from c1 )
No variable in here => no expansion will take place. Maybe your example is too short? Do you in reality have something like "x=$(db2 $var fetch from c1)"? In this case surround $var with quotes.
fabtagon
View Public Profile
Find all posts by fabtagon
Find fabtagon's past nominations received
Find fabtagon's present nominations given