<?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: count files created in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554000#M840599</link>
    <description>Hi Fernando,&lt;BR /&gt;&lt;BR /&gt;To find the file count in a directory you can do this.&lt;BR /&gt;&lt;BR /&gt;ls -l | wc -l.  This will give the number of file count in the directory.&lt;BR /&gt;&lt;BR /&gt;If you want the number of file for a particular period, then do this.&lt;BR /&gt;&lt;BR /&gt;For example the file names have log as a common string.&lt;BR /&gt;find . -name "*log*" -mtime +3 -exec ls -l {} \; | wc -l&lt;BR /&gt;&lt;BR /&gt;This will give the count for files called as *log* with modified date as 3 days back.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 30 May 2005 00:40:56 GMT</pubDate>
    <dc:creator>Indira Aramandla</dc:creator>
    <dc:date>2005-05-30T00:40:56Z</dc:date>
    <item>
      <title>count files created</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3553998#M840597</link>
      <description>Dear Gurus,&lt;BR /&gt;I have a files created everyday. And i would like to have a trend how many files are created each day.&lt;BR /&gt;I would like to ask for counting files everyday including the files created yesterday or a month ago?&lt;BR /&gt;Is this possible?&lt;BR /&gt;&lt;BR /&gt;Maximum points for all correct replies.</description>
      <pubDate>Sun, 29 May 2005 23:27:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3553998#M840597</guid>
      <dc:creator>Pando</dc:creator>
      <dc:date>2005-05-29T23:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: count files created</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3553999#M840598</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What about &lt;BR /&gt;"find / -name *.* -print -ctime...."&lt;BR /&gt;&lt;BR /&gt;Use ctime -&amp;gt;created time&lt;BR /&gt;atime -&amp;gt; accesed time&lt;BR /&gt;mtime -&amp;gt; modified time&lt;BR /&gt;&lt;BR /&gt;with appropriate time value&lt;BR /&gt;&lt;BR /&gt;Pipe to a "wc -l" to get the count.&lt;BR /&gt;&lt;BR /&gt;Refer to manpage of find.&lt;BR /&gt;&lt;BR /&gt;Just a thought.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;TT&lt;BR /&gt;</description>
      <pubDate>Mon, 30 May 2005 00:29:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3553999#M840598</guid>
      <dc:creator>Thayanidhi</dc:creator>
      <dc:date>2005-05-30T00:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: count files created</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554000#M840599</link>
      <description>Hi Fernando,&lt;BR /&gt;&lt;BR /&gt;To find the file count in a directory you can do this.&lt;BR /&gt;&lt;BR /&gt;ls -l | wc -l.  This will give the number of file count in the directory.&lt;BR /&gt;&lt;BR /&gt;If you want the number of file for a particular period, then do this.&lt;BR /&gt;&lt;BR /&gt;For example the file names have log as a common string.&lt;BR /&gt;find . -name "*log*" -mtime +3 -exec ls -l {} \; | wc -l&lt;BR /&gt;&lt;BR /&gt;This will give the count for files called as *log* with modified date as 3 days back.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Indira A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 May 2005 00:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554000#M840599</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-05-30T00:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: count files created</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554001#M840600</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I see a problem in using find command here, any option like -mtime, -atime or -ctime would give the output as n-1 to n multiples of 24 hrs, where 'n' is the nubner specified after say -ctime.&lt;BR /&gt;&lt;BR /&gt;Thus giving -ctime 1 would give all the files created since current time previous day.&lt;BR /&gt;&lt;BR /&gt;What Fernando needs is only files created today. We would need to write a script which checks the file create date with current date kind of logic.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 30 May 2005 01:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554001#M840600</guid>
      <dc:creator>Suraj Singh_1</dc:creator>
      <dc:date>2005-05-30T01:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: count files created</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554002#M840601</link>
      <description>Is there a way to list the date of the file creation?&lt;BR /&gt;</description>
      <pubDate>Mon, 30 May 2005 02:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554002#M840601</guid>
      <dc:creator>Pando</dc:creator>
      <dc:date>2005-05-30T02:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: count files created</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554003#M840602</link>
      <description>Hi Fernando,&lt;BR /&gt;&lt;BR /&gt;unfortunately, unix does not register any data concerning file creation time: you only have the last time the content of the file was modified, the last time the file itself was accessed, and the last time the inode info of the file was modified. &lt;BR /&gt;The last time the inode info was modified is probably your best chance, as it may coincide with the creation time of the file. However, if anyone has changed access rights, user/group relationships etc. after file creation time - and you cannot tell if that is the case - it will of course not work.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 May 2005 03:43:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/count-files-created/m-p/3554003#M840602</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-05-30T03:43:27Z</dc:date>
    </item>
  </channel>
</rss>

