![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| foreach loop | ROOZ | Shell Programming and Scripting | 3 | 06-05-2008 03:20 PM |
| foreach loop + 2 variables | JamesGoh | Shell Programming and Scripting | 3 | 06-04-2008 03:36 AM |
| using foreach loop | sam4now | Shell Programming and Scripting | 6 | 04-26-2008 11:22 AM |
| foreach loop | abch624 | Shell Programming and Scripting | 1 | 03-19-2008 09:34 PM |
| foreach loop question | clipski | UNIX for Dummies Questions & Answers | 7 | 12-22-2005 01:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
Otherwise nobody is going to understand what is this Code:
foreach var ($argv)
@sum = $sum + $var[/QUOTE]
Need help on C-shell script program.. Last edited by user_prady; 11-16-2007 at 12:53 AM.. |
|
||||
|
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.
|
|
||||
|
Quote:
GO with your OWN code Code:
foreach var ( $input ) @sum = $sum + $input end |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|