Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: linux scripting question

RE: linux scripting question

From: Mark W. Farnham <mwf_at_rsiz.com>
Date: Wed, 21 Mar 2007 08:01:06 -0400
Message-ID: <017e01c76bb0$9bd656c0$1100a8c0@rsiz.com>


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_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] 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

--

http://www.freelists.org/webpage/oracle-l Received on Wed Mar 21 2007 - 07:01:06 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US