I want to write a ksh (korn shell) script to show disk usage per user.

Description:
The script should take in a single command-line argument--the directory name, and display the usage in MB per user. Please comment your code for readability. I tried to use the Unix ‘du’ command or you can write your own method to accomplish this task.

I want to write a ksh (korn shell) script to show disk usage per user. The script should take in a single command-line argument--the directory name, and display the usage in MB per user.

I have managed to get the files listings in the directory and then check who the owner of the file was. But, I am unable to associate the space taken up by the file to it's particular owner. If I could find a way to do that, I would simply add the space of the files of similar owners. Please let me know, if I'm thinking wrong and please suggest on how to proceed further. Associateive arrays might help but I dont know that they exist in ksh or not. If yes, then how do I create one and set values to it ??

NOTE: Associative arrays are different than the normal arrays. Please dont give me a way to declare a simple array. I tried typeset to create an associative array, but it dosen't work !!

Ops... a correction to the script:
====================================================================================================
#!/bin/bash
####################################################################################################

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Introduction:
Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers. The PreTranslateMessage function is to be used to intercept and respond to keyboard events.
Continuing from the fourth article about sudoku. …

Introduction:
Dialogs (2) modeless dialog and a worker thread. Handling data shared between threads. Recursive functions.
Continuing from the tenth article about sudoku.
Last article we worked with a modal dialog to help maintain informat…

Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…