![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help with awk
Hi Guys,,
I am assigning a query result to a variable. variable=`db2 -x "select col1 from table1 | awk '{print $1}'` The problem is if i execute the above command without awk. I am getting an value. But if i execute with awk command, i am getting an error, saying A database connection does not exists. I want the awk command to be used. Please help me. Thanks for your help in advance, Magesh |
| Bookmarks |
| Tags |
| awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|