Script to give the disk usage in GB for each user.
Hi,
I am trying to write a script which gives the disk usage report of every user in the server. I have wrote a code in such a way that it calculates the disk size of each user under /home and gives the output on the command line.
EX:
1GB user1
1GB user2
1GB user3
... .....
... .....
nGB usern
i am able to send this output via mail, but i want a script which can go thru each and every line, compare the size and list only the user-names who have data more than 1GB so that the same can sent thru the email. Can any one suggest me the code for the same.
Thanks...
|