![]() |
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 |
| Shell script to read multiple log files | esungoe | Shell Programming and Scripting | 1 | 08-08-2008 08:46 AM |
| How to read from multiple files | cedrichiu | Shell Programming and Scripting | 5 | 07-10-2007 11:49 AM |
| Trying to read data multiple times | coachr | Shell Programming and Scripting | 1 | 12-14-2006 08:19 PM |
| Trying to read data multiple times | coachr | Shell Programming and Scripting | 0 | 12-06-2006 02:11 PM |
| Perl program to read from multiple files | jyotipg | Shell Programming and Scripting | 1 | 07-19-2006 09:26 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Read the data from multiple files and sum the value
Hi all,
I have a requirement where i have to read multiple files using Shell Script in Korn Shell. each file will have the 3rd line as the amount field, i have to read this amount field and sum it for all the files. any idea on how to achieve this?? (i think i can achieve it using a loop, getting the number files and using a loop for all the files and sum the amount) any simpler approach than this?? the number of files to be read may vary. highly appreciate your help. Thanks, Naren |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|