The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Foreach loop
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-16-2007
user_prady user_prady is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 163
Quote:
Originally Posted by haze21 View Post
Yes I posted the whole problem before and you gave me an answer but i want to use my own code. I dont want to use someone elses code, I am just having trouble figuring out the problem with the foreach loop and seeing if anyone here has any ideas.

GO with your OWN code

Code:
foreach var ( $input )
@sum = $sum + $input
end

And please post some new thread before reading Rules and Regulation of this forum..Don't cofuse us ..