Ignore:
Timestamp:
Nov 23, 2004, 3:32:00 PM (20 years ago)
Author:
ole
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/pytools/diskreport.py

    r29 r32  
    33Usage
    44
    5 python diskreport.py /d/cit/7
     5python diskreport.py /d/cit/7
     6
     7
     8will generate things like
     9
     10find . -xdev -type f -atime +365 -exec ls -la {} \; | gawk '{printf("%s %s %s\n", $3x, $5, $9)}'  | sort -k 1,1 -k2,2nr
     11
    612"""
    713
     
    4551    cmd += ls_cmd + ' | ' + filter_cmd + ' | ' + sort_cmd
    4652    cmd += ' > %s 2>/dev/null' %tempfile #Redirect
    47     #print cmd
     53    print cmd
    4854    os.system(cmd)
    4955
Note: See TracChangeset for help on using the changeset viewer.