![]() |
|
|
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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| loop problem | henrysmith | UNIX for Advanced & Expert Users | 15 | 05-21-2009 11:37 PM |
| if loop problem | crackthehit007 | Shell Programming and Scripting | 4 | 03-31-2009 05:09 PM |
| loop problem | paddock | Shell Programming and Scripting | 2 | 09-23-2008 11:15 AM |
| awk and loop problem | invinzin21 | Shell Programming and Scripting | 3 | 02-04-2008 09:54 PM |
| for loop problem | namishtiwari | Shell Programming and Scripting | 5 | 01-25-2008 12:58 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem in While loop
Hi Guys,
This is my code.. I am getting an error in the inside while statement when comparing.. I am not able to figure it out.. Pls help me... while read value fatherid son_id top_id r_type do inside_value=1; echo $inside_value; echo $r_type; while [ $r_type -ne 'RW' ] do echo "select value,FATHER,NSON,TOPID,rtype from table1 where FATHER=$son_id and TOP=$top_id with ur" > inside.dat; read inside_value inside_father_id inside_son_id inside_top_id inside_r_type < inside.dat; value = expr (inside_value/1000)*value; top_id=inside_top_id; son_id=inside_father_id; done echo $value $top_id $son_id $fatherid; done < b.dat; The error is RP.ksh[2]: 0403-057 Syntax error at line 17 : `"' is not matched. Thanks for your help in advacne.. Regards, Magesh. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|