<?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: script to find big files in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-to-find-big-files/m-p/4048718#M94205</link>
    <description>What do you mean by "big files"? Please say how big a "big file" should be in order to appear in the output of the desired script.&lt;BR /&gt;&lt;BR /&gt;~thanks</description>
    <pubDate>Thu, 02 Aug 2007 13:48:48 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-08-02T13:48:48Z</dc:date>
    <item>
      <title>script to find big files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-find-big-files/m-p/4048717#M94204</link>
      <description>I'm looking for a script that I know existed years ago.&lt;BR /&gt;&lt;BR /&gt;what it did was find the big files that were on the system.  saves the output.  compares that output to a master list (known big files and their size) and mails the differences.&lt;BR /&gt;&lt;BR /&gt;this way it filters out acceptable large files like the kernel, libraries, etc.  and only mails the big files that are growing in size.&lt;BR /&gt;&lt;BR /&gt;I was wondering if someone has a copy that they would be willing to share.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Thu, 02 Aug 2007 13:44:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-find-big-files/m-p/4048717#M94204</guid>
      <dc:creator>larsoncu</dc:creator>
      <dc:date>2007-08-02T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: script to find big files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-find-big-files/m-p/4048718#M94205</link>
      <description>What do you mean by "big files"? Please say how big a "big file" should be in order to appear in the output of the desired script.&lt;BR /&gt;&lt;BR /&gt;~thanks</description>
      <pubDate>Thu, 02 Aug 2007 13:48:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-find-big-files/m-p/4048718#M94205</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-08-02T13:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: script to find big files</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-find-big-files/m-p/4048719#M94206</link>
      <description>I would say that learning to write such a script is far more important than hunting one up to do such a straightforward task. I would almost certainly do this in Perl using the File::Find module but this should get you started as a shell example:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;TDIR=${TMPDIR:-/var/tmp}&lt;BR /&gt;typeset F1=${TDIR}/F${$}_1.list&lt;BR /&gt;typeset BIG=1000000 # find any files larger that this&lt;BR /&gt;&lt;BR /&gt;trap 'eval rm -f ${F1}' 0 1 2 3 15&lt;BR /&gt;&lt;BR /&gt;find / -local -type f -size +${BIG}c -exec ls -l {} \+ | sort &amp;gt; ${F1}&lt;BR /&gt;&lt;BR /&gt;File ${F1} now contain a list of "big" files that you can compare to your master list.&lt;BR /&gt;&lt;BR /&gt;Presumably you master list is also sorted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2007 14:27:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-find-big-files/m-p/4048719#M94206</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-02T14:27:23Z</dc:date>
    </item>
  </channel>
</rss>

