Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

processing of ascii file help needed please

Status
Not open for further replies.

linuxNewbie71

Technical User
Sep 18, 2001
1
US
Hi I have a list from the grocery counter and i have to do the survey on the most popular food items being purchased. There are 10 fields. Field 5 contains the ID of the grocery item, field six contains cost of item,field seven contains location where the item came from and field eight contains
areaID of customer to whom the item was sold. I need to find out

1. fraction of the four most common grocery items in the whole list.
2. cumulative distribution of item costs - for each item the fraction of the amount smaller or equal to an amount A
3.the number of items whcih came from the same location have same ID and went to the same customer area.

I need this stuff to complete my first assignment survey in my new job as an inventory tech support - i tried using awk but couldnt get to this advanced stage. Can anyone help me please?
 
Hi linuxNewbie71,

Post a sample of your input data. Also I don't quite understand what calculations you want to do. Describe them in a little more detail and give an example of each using actual numbers.

CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top