RE: linux scripting question

What I would do is ls -lR every day to a date named file and then diff any
two days and pick off the rows and fields I wanted and net up the ins versus
the outs with awk or perl.

 

Then if you want to drill in on more details about the changes, you've got
them. If your arbitrary time granule is smaller than a day, then you'd need
more frequent snaps, and of course this process dies by Xeno at some level
of willingness to spend space for the data.

 

  _____  

From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Niall Litchfield
Sent: Wednesday, March 21, 2007 6:52 AM
To: oracle-l
Subject: linux scripting question

 

hopefully a quick one for peope with much more shell scripting than me. 

 

I need a way to determine (possibly for an arbitrary period) the total size
of files modified in the last n days in a directory tree. Ideally I'd also
know where the space hogs are in the tree (i.e directories that have grown
the most in the last n days). I can do the parts of this, but am having
trouble putting it all together.   

-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info 

Other related posts: