![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| looping a array inside inside ssh is not working, pls help | reldb | Shell Programming and Scripting | 5 | 07-07-2006 11:32 AM |
| scripting headache... loops & variables | StevePace | Shell Programming and Scripting | 6 | 02-07-2006 01:18 AM |
| passing variables to sed inside script | Daniel234 | Shell Programming and Scripting | 5 | 11-24-2005 06:15 AM |
| test to see if useradd worked | doublejz | Shell Programming and Scripting | 3 | 08-27-2005 04:38 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Variables being worked on inside of loops
I have a while read loop that reads values inside of a file and then performs an expr operation on each.
Everything works fine, the way it's supposed to but, once the loop is finished, I can not access the variable that I used inside of the loop (but that variable was created outside of the loop). In other words... PHP Code:
Is this something I'm not allowed to do? I changed the value of the variable I created outside of the loop, from within the loop, but it didn't change after the loop was done, outside. I tested the loop, and yes, the loop works, the values are there. Should I just redirect the output to a file and just use the file as my variable? Last edited by yongho; 06-13-2005 at 11:33 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|