<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: File census in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724462#M253583</link>
    <description>Don,&lt;BR /&gt;&lt;BR /&gt;Sorry my 1st one will remove all.&lt;BR /&gt;&lt;BR /&gt;use &lt;BR /&gt;&lt;BR /&gt;find / -mtime +720 -print &lt;BR /&gt;&lt;BR /&gt;the above will print files more than 720 days old.&lt;BR /&gt;&lt;BR /&gt;find you want that in a file&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;find / -mtime +720 -print &amp;gt;&amp;gt; /tmp/720days_files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find / -size +nk 2000 -print&lt;BR /&gt;prints size more that 2M&lt;BR /&gt;&lt;BR /&gt;Chan</description>
    <pubDate>Sat, 04 Feb 2006 13:31:33 GMT</pubDate>
    <dc:creator>Chan 007</dc:creator>
    <dc:date>2006-02-04T13:31:33Z</dc:date>
    <item>
      <title>File census</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724459#M253580</link>
      <description>I have inherited two hp unix servers that have files that are "older than the hills" and I would like to prune them from the tree. Does anyone have any scripts that will go thru and list out files by date and or by size.</description>
      <pubDate>Sat, 04 Feb 2006 13:18:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724459#M253580</guid>
      <dc:creator>Donald Thaler</dc:creator>
      <dc:date>2006-02-04T13:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: File census</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724460#M253581</link>
      <description>Don,&lt;BR /&gt;&lt;BR /&gt;use&lt;BR /&gt;&lt;BR /&gt;find / -mtime &amp;lt;720=days old&amp;gt; -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;starts form /&lt;ROOT&gt;&lt;BR /&gt;&lt;BR /&gt;if specific&lt;BR /&gt;then &lt;BR /&gt;find /don -mtime 720 -exec rm {} \;&lt;BR /&gt;&lt;BR /&gt;use mtime for modified time and&lt;BR /&gt;atime for access time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chan&lt;/ROOT&gt;</description>
      <pubDate>Sat, 04 Feb 2006 13:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724460#M253581</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-02-04T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: File census</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724461#M253582</link>
      <description>Hi Donald:&lt;BR /&gt;&lt;BR /&gt;'find' is your friend for this.  See its manpages for more details.&lt;BR /&gt;&lt;BR /&gt;# find /path -xdev -type f -mtime +120 | xargs ls -l&lt;BR /&gt;&lt;BR /&gt;...will search /path not cross any mountpoints (-xdev), look only for files (-type f) that have not been modified in 120-days or more (-mtime +120) and pipe any of the names found to 'ls -l' to offer you a full long-listing.&lt;BR /&gt;&lt;BR /&gt;You can change the 'ls -l' to 'rm' if you are satisfied that you want to remove all of those candidates.&lt;BR /&gt;&lt;BR /&gt;# find /path -xdev -type f -mtime +120 | xargs ls -l&lt;BR /&gt;&lt;BR /&gt;Similarly, to find all files whose size is greater than 100,000 characters, do:&lt;BR /&gt;&lt;BR /&gt;# find /tmp -xdev -type f -size +100000c | xargs ls -l&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 04 Feb 2006 13:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724461#M253582</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-02-04T13:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: File census</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724462#M253583</link>
      <description>Don,&lt;BR /&gt;&lt;BR /&gt;Sorry my 1st one will remove all.&lt;BR /&gt;&lt;BR /&gt;use &lt;BR /&gt;&lt;BR /&gt;find / -mtime +720 -print &lt;BR /&gt;&lt;BR /&gt;the above will print files more than 720 days old.&lt;BR /&gt;&lt;BR /&gt;find you want that in a file&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;find / -mtime +720 -print &amp;gt;&amp;gt; /tmp/720days_files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find / -size +nk 2000 -print&lt;BR /&gt;prints size more that 2M&lt;BR /&gt;&lt;BR /&gt;Chan</description>
      <pubDate>Sat, 04 Feb 2006 13:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724462#M253583</guid>
      <dc:creator>Chan 007</dc:creator>
      <dc:date>2006-02-04T13:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: File census</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724463#M253584</link>
      <description>For listing by date,&lt;BR /&gt;&lt;BR /&gt;# find / -type f -mtime +45 -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;It will list files who are elder that 45 days.&lt;BR /&gt;&lt;BR /&gt;Based on size,&lt;BR /&gt;&lt;BR /&gt;# find / -type f -exec du {} \; | xargs sort -rnk 1&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Sun, 05 Feb 2006 22:22:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-census/m-p/3724463#M253584</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-05T22:22:26Z</dc:date>
    </item>
  </channel>
</rss>

