Could someone please help. AIX system being used
I have a directory which has user files in it - this directory is constantly filling up and i need to create a script which will be able to tally up the total file space used by each user.
1) Not sure how the script should work perhaps the first step would be for it to identify each user that has 1 or more files within the directory then produce a list of each user with the total number of files that user owns. (to identify the top 10 culprits of excess usage).
2) The next step would be to tally up the total space used by each user within that directory.
The output of 1 and 2 above could be combined in one output for ease of identification.
Alternatively perhaps some kind of interactive script were it would prompt for the directory to search in and then the owner/user etc.
Any help would be greatly appreciated
thanks
I have a directory which has user files in it - this directory is constantly filling up and i need to create a script which will be able to tally up the total file space used by each user.
1) Not sure how the script should work perhaps the first step would be for it to identify each user that has 1 or more files within the directory then produce a list of each user with the total number of files that user owns. (to identify the top 10 culprits of excess usage).
2) The next step would be to tally up the total space used by each user within that directory.
The output of 1 and 2 above could be combined in one output for ease of identification.
Alternatively perhaps some kind of interactive script were it would prompt for the directory to search in and then the owner/user etc.
Any help would be greatly appreciated
thanks