Changeset 32
- Timestamp:
- Nov 23, 2004, 3:32:00 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/pytools/diskreport.py
r29 r32 3 3 Usage 4 4 5 python diskreport.py /d/cit/7 5 python diskreport.py /d/cit/7 6 7 8 will generate things like 9 10 find . -xdev -type f -atime +365 -exec ls -la {} \; | gawk '{printf("%s %s %s\n", $3x, $5, $9)}' | sort -k 1,1 -k2,2nr 11 6 12 """ 7 13 … … 45 51 cmd += ls_cmd + ' | ' + filter_cmd + ' | ' + sort_cmd 46 52 cmd += ' > %s 2>/dev/null' %tempfile #Redirect 47 #print cmd53 print cmd 48 54 os.system(cmd) 49 55
Note: See TracChangeset
for help on using the changeset viewer.