<?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: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp;amp; stand in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378129#M348231</link>
    <description>Hi,&lt;BR /&gt;touch -amt 02170000.00 /tmp/mon-date&lt;BR /&gt;touch -amt 02192359.59 /tmp/max-date&lt;BR /&gt;find / -name opt -prune \&lt;BR /&gt;    -o -name var -prune \&lt;BR /&gt;    -o -name tmp -prune \ &lt;BR /&gt;    -o -name usr -prune \&lt;BR /&gt;    -o -name stand -prune \ &lt;BR /&gt;    -xdev -type f \ &lt;BR /&gt;    -newer /tmp/min-date \ &lt;BR /&gt;  ! -newer /tmp/max-date -exec ls -lt {} +&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
    <pubDate>Fri, 13 Mar 2009 07:23:17 GMT</pubDate>
    <dc:creator>Arturo Galbiati</dc:creator>
    <dc:date>2009-03-13T07:23:17Z</dc:date>
    <item>
      <title>Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378120#M348222</link>
      <description>HP-UX SAs:&lt;BR /&gt;&lt;BR /&gt;I am trying to list out files which were modified on Feb 17, 18, 19th and then, eliminate files from /opt, /var, /tmp, /usr and /stand. Can I achieve it using the "find" string? (Or anyother reliable means) There are atleast 40,000 files therefore, I do not want to eliminate it manually. I was able to achive the first part of my question with the syntax, "# find / -mtime +20 -mtime -23 -exec ls -ltr {} \;",  but I am unable to eliminate the listing of the files from the filesystems mentioned above. Any suggestions?</description>
      <pubDate>Thu, 12 Mar 2009 18:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378120#M348222</guid>
      <dc:creator>Kennedy G. Doss</dc:creator>
      <dc:date>2009-03-12T18:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378121#M348223</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Are you attmepting to examine '/' without visiting mountpoints?  If so, add '-xdev' as:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev ...&lt;BR /&gt;&lt;BR /&gt;As for a range of dates, you can do:&lt;BR /&gt;&lt;BR /&gt;# touch -amt 02170000.00 /tmp/ref1&lt;BR /&gt;# touch -amt 02192359.59&lt;BR /&gt;# find / -xdev -type f -newer /tmp/ref1 ! -newer /tmp/ref2 -exec ls -lt {} +&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 12 Mar 2009 18:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378121#M348223</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-12T18:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378122#M348224</link>
      <description>list out files which were modified on Feb 17, 18, 19th and then, eliminate files from /opt, /var, /tmp, /usr and /stand.&lt;BR /&gt;&lt;BR /&gt;This sounds dangerous.&lt;BR /&gt;What if you delete the active and the backup kernel or other important files?&lt;BR /&gt;&lt;BR /&gt;Why do you want to do this?</description>
      <pubDate>Thu, 12 Mar 2009 18:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378122#M348224</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-03-12T18:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378123#M348225</link>
      <description>I might be tempted to just list the directories you're willing to visit, using the -newer and ! -newer options as James points out:&lt;BR /&gt;&lt;BR /&gt;find /home /mydir /myotherdir -type f -newer . . . . . .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Mar 2009 18:23:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378123#M348225</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-03-12T18:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378124#M348226</link>
      <description>Just want to be a little more specific:&lt;BR /&gt;&lt;BR /&gt;I do not intend to eliminate the files from /var, /tmp etc. etc from the server. I just want to get a file list and eliminate files from the listing. (I will use the file listing to perform a restore another server. -That is why I dont need /var, /tmp, /, /stand etc. etc.)</description>
      <pubDate>Thu, 12 Mar 2009 18:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378124#M348226</guid>
      <dc:creator>Kennedy G. Doss</dc:creator>
      <dc:date>2009-03-12T18:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378125#M348227</link>
      <description>You can do it various ways.&lt;BR /&gt;1) You can pipe it to grep to exclude those names.&lt;BR /&gt;2) You can only use find on the filesystems that you want.&lt;BR /&gt;3) You can use ! -path to exclude those names.&lt;BR /&gt;4) The most efficient would be to use -prune on those directories.  (Unfortunately the syntax is complicated.)&lt;BR /&gt;&lt;BR /&gt;You also want to replace that "\;" by "+" and add -d to your ls, or use "-type f".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Torsten: What if you delete the active and the backup kernel or other important files?&lt;BR /&gt;&lt;BR /&gt;I assume by "eliminate" he meant exclude, not print.</description>
      <pubDate>Thu, 12 Mar 2009 18:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378125#M348227</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-12T18:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378126#M348228</link>
      <description>Try&lt;BR /&gt;&lt;BR /&gt;find / -mtime +20 -mtime -23 | grep -v -e ^/opt/ -e ^/var/ -e ^/tmp/ -e ^/usr/ -e ^/stand/ &lt;BR /&gt;&lt;BR /&gt;This should produce a list of files without any from the file systems you mentioned, while leaving all other mount points in the listing.</description>
      <pubDate>Thu, 12 Mar 2009 18:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378126#M348228</guid>
      <dc:creator>Michael Mike Reaser</dc:creator>
      <dc:date>2009-03-12T18:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378127#M348229</link>
      <description>Here is how to use -prune:&lt;BR /&gt;find / -name opt -prune -o -name var -prune -o -name tmp -prune -o \&lt;BR /&gt;       -name usr -prune -o -name stand -o \&lt;BR /&gt;  -mtime +20 -mtime -23 -exec ls -dltr {} +&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Mar 2009 04:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378127#M348229</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-13T04:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378128#M348230</link>
      <description># find / -mtime +20 -mtime -23&lt;BR /&gt;&lt;BR /&gt;The problem with -mtime is that it changes every second you delay and it based on the time when you execute the command.  It also truncates to a 24 hour period.  So JRF's touch may be better.</description>
      <pubDate>Fri, 13 Mar 2009 04:19:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378128#M348230</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-13T04:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Find files which were modified for a period of 3 days and eliminate /opt, /var, tmp, /usr &amp; stand</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378129#M348231</link>
      <description>Hi,&lt;BR /&gt;touch -amt 02170000.00 /tmp/mon-date&lt;BR /&gt;touch -amt 02192359.59 /tmp/max-date&lt;BR /&gt;find / -name opt -prune \&lt;BR /&gt;    -o -name var -prune \&lt;BR /&gt;    -o -name tmp -prune \ &lt;BR /&gt;    -o -name usr -prune \&lt;BR /&gt;    -o -name stand -prune \ &lt;BR /&gt;    -xdev -type f \ &lt;BR /&gt;    -newer /tmp/min-date \ &lt;BR /&gt;  ! -newer /tmp/max-date -exec ls -lt {} +&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Fri, 13 Mar 2009 07:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-files-which-were-modified-for-a-period-of-3-days-and/m-p/4378129#M348231</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2009-03-13T07:23:17Z</dc:date>
    </item>
  </channel>
</rss>

