python vs awk for simple sysamin tasks

Matthew Thorley ruach at chpc.utah.edu
Thu Jun 3 10:53:54 CEST 2004


I should have included this in the last post. The script gives output 
that looks like this:

Results for path /linshr/hope
   Searched 694 dirs
   Searched 10455 files
   Total disk use for all files = 4794176 bytes
   6 files returned errors
Results for user 1000
   User owns 692 dirs
   User owns 10389 files
   Total disk use for user = 4791474 bytes
   Users smallest file /linshr/hope/.fonts.cache-1 is 0 bytes
   Users largest file /linshr/hope/vmw/tgz/winXPPro_vmware.tgz is 
2244111 bytes
   Average user file size = 461 bytes

-matthew



More information about the Python-list mailing list