Changeset 27
- Timestamp:
- Nov 19, 2004, 4:28:51 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/pytools/diskreport.py
r26 r27 129 129 130 130 # Find the largest directories 131 topname = 'top50_%s.txt' %(make_filename(dir)) 131 132 txt = 'Top 50 largest directories on %s (stated in kilo bytes)' %dir 132 os.system('echo "%s" > top50.txt' %txt)133 cmd = 'du -k "%s" | sort -nr >> top50_%s.txt' %(dir, make_filename(dir))133 os.system('echo "%s" > %s' %(txt, topname)) 134 cmd = 'du -k "%s" | sort -nr | head -50 >> %s' %(dir, topname) 134 135 os.system(cmd) 135 136
Note: See TracChangeset
for help on using the changeset viewer.