The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



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
Return an array of strings from user defined function in awk user_prady Shell Programming and Scripting 2 12-04-2007 12:03 AM
need help with User Defined Function user_prady Shell Programming and Scripting 11 11-18-2007 08:51 PM
awk printf for user defined variables jabberwocky Shell Programming and Scripting 1 10-02-2007 08:07 AM
User defined service markdrury UNIX for Dummies Questions & Answers 1 02-09-2006 01:08 AM
User defined signal 1 nitesh_raj AIX 0 01-29-2005 02:20 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-20-2003
NewbieGirl NewbieGirl is offline
Registered User
  
 

Join Date: Jun 2003
Location: Sierra Vista, AZ
Posts: 2
Nawk user-defined function

HELP!!!! I am in an on-line shell programming class and have a question. Here is the data:

Mike Harrington510) 548-1278:250:100:175
Christian Dobbins408) 538-2358:155:90:201
Susan Dalsass206) 654-6279:250:60:50
(There are 12 contribuors total)

This database contains names, phone numbers and money contributions to a party campaigh for the past three months.

How do I write a user-defined function to return the average of all the contributions for a given month? The month will be passed in at the command line.

Thanks!!
  #2 (permalink)  
Old 06-20-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
We have a few rules here. In particular,
Quote:
(6) Do not post classroom or homework problems.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0