Differences between revisions 5 and 6
Revision 5 as of 2008-11-17 13:22:19
Size: 1051
Editor: anonymous
Comment:
Revision 6 as of 2008-11-17 14:51:36
Size: 1093
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
[[/Group1]] [[/Group1]] Simon, Fabian
Line 29: Line 29:
[[/Group2]] [[/Group2]] Anja, Korbinian, Johannes
Line 31: Line 31:
[[/Group3]]

[[/G
roup4]]
[[/Group3]] Stergios, Daniel

Dear User,

according to our records you use too much disk space in your home directory.
Please delete at least 862312312.29 Megabytes in the next 1.2 days.

If you have any questions do not hesitate to send a mail to
help-it@zmaw.de.

best regards

Central IT Services - ZMAW

Have you ever received such an email? If not, perfect! Otherwise you should look at least for the biggest problems:

  • Write a function that walks through a directory tree and collects the pathnames and sizes of all files.
  • Write a function that sorts the results of the first function according to the size of the files.
  • Combine both functions in a script which can be called from the bash.
  • Optional: limit the resulting list to the top10 sizes
  • Optional: automatically compress the largest files of a certain type.

/Group1 Simon, Fabian

/Group2 Anja, Korbinian, Johannes

/Group3 Stergios, Daniel

LehreWiki: Python/Exercise3 (last edited 2008-11-17 14:51:36 by anonymous)