![]() |
|
|
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 |
| Problem in For Loop | The Observer | Shell Programming and Scripting | 2 | 05-28-2008 03:43 AM |
| for loop problem | namishtiwari | Shell Programming and Scripting | 5 | 01-25-2008 12:58 PM |
| Problem with for loop/sed ? | chiru_h | Shell Programming and Scripting | 2 | 08-27-2006 12:55 PM |
| loop Problem | dhananjaysk | Shell Programming and Scripting | 3 | 03-31-2006 02:05 PM |
| problem with while loop | mridula | High Level Programming | 1 | 12-11-2005 11:44 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
loop problem
Got a problem with a loop that do this for each line:
a=$(( cost + $( awk ' { print $2 } ' file) )) awk ' $2 ~ "^[0-9]" && $2 > 0 {$2='$a';print} ' file #!/bin/sh cost=30 for, until, while? do "db update OD_LINK_COST something" done For troubleshoot the file looks like this 55 10 56 10 57 20 58 10 and so on |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|