<?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: list by a date range? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090509#M806426</link>
    <description>Hi Bob,&lt;BR /&gt; &lt;BR /&gt;You can use,&lt;BR /&gt; &lt;BR /&gt;# ls -la | grep "Jan 22"&lt;BR /&gt; &lt;BR /&gt;Hope it helps,&lt;BR /&gt; &lt;BR /&gt;Robert-Jan.</description>
    <pubDate>Fri, 10 Oct 2003 08:19:41 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2003-10-10T08:19:41Z</dc:date>
    <item>
      <title>list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090502#M806419</link>
      <description>is it possible (I have been told everything is possible in UNIX) to do a list of files which are from a specified date?&lt;BR /&gt;&lt;BR /&gt;when I try an ls -ltr or ls -l etc I cant see back far enough to get the files I am looking for.&lt;BR /&gt;&lt;BR /&gt;help!&lt;BR /&gt;Bob</description>
      <pubDate>Fri, 10 Oct 2003 08:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090502#M806419</guid>
      <dc:creator>bob the spod</dc:creator>
      <dc:date>2003-10-10T08:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090503#M806420</link>
      <description>Have you tried piping your command to 'more'?&lt;BR /&gt; &lt;BR /&gt;# ls -lt | more&lt;BR /&gt; &lt;BR /&gt;# ls -ltr | more&lt;BR /&gt; &lt;BR /&gt;The -t option will sort everything by date, and 'r' reverses it.</description>
      <pubDate>Fri, 10 Oct 2003 08:14:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090503#M806420</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-10T08:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090504#M806421</link>
      <description>Bob,&lt;BR /&gt; &lt;BR /&gt;For a specific date you could use grep:  "ls -l |grep 'Feb 20  1997'".&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Pete&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2003 08:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090504#M806421</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-10-10T08:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090505#M806422</link>
      <description>Hmm....To quick on the submit this morning.  &lt;BR /&gt; &lt;BR /&gt;The only way I can really think of to look for a specific date is with 'grep'.&lt;BR /&gt; &lt;BR /&gt;# ls -l | grep "Oct  9"&lt;BR /&gt;# ls -lt | grep "Aug 31"&lt;BR /&gt; &lt;BR /&gt;Note that if the date is a single digit number, then there are 2 space between the Month and the day.</description>
      <pubDate>Fri, 10 Oct 2003 08:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090505#M806422</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-10T08:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090506#M806423</link>
      <description>Hi,&lt;BR /&gt;If you do not mind a bit of counting, e.g. list files whose last rev date is 3:&lt;BR /&gt;# find &lt;START_DIR&gt; -type f -mtime 3 -exec ls -l {} \;&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;&lt;/START_DIR&gt;</description>
      <pubDate>Fri, 10 Oct 2003 08:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090506#M806423</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-10-10T08:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090507#M806424</link>
      <description>Well,&lt;BR /&gt;&lt;BR /&gt;"ls -ltr | more" will at least allow you to page throught the output (press space) but another and somewhat duller approach is&lt;BR /&gt; &lt;BR /&gt;"find / -mtime X -print" will list files modified in the last X days though i think&lt;BR /&gt;"find / -ctime X -print" is more likely to end up meaning created in the last X days (it doesn't but most of the time the result is the same)</description>
      <pubDate>Fri, 10 Oct 2003 08:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090507#M806424</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-10T08:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090508#M806425</link>
      <description>Hi again,&lt;BR /&gt;sorry, I meant "files whose last revision date was three days ago".&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K,</description>
      <pubDate>Fri, 10 Oct 2003 08:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090508#M806425</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2003-10-10T08:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090509#M806426</link>
      <description>Hi Bob,&lt;BR /&gt; &lt;BR /&gt;You can use,&lt;BR /&gt; &lt;BR /&gt;# ls -la | grep "Jan 22"&lt;BR /&gt; &lt;BR /&gt;Hope it helps,&lt;BR /&gt; &lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Fri, 10 Oct 2003 08:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090509#M806426</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-10-10T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: list by a date range?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090510#M806427</link>
      <description>Hi Bob,&lt;BR /&gt; &lt;BR /&gt;Best way I can think of to do this is with touch &amp;amp; find.&lt;BR /&gt;touch -t 2 files, one at each end of the range &amp;amp; then use find with -newer for the low end &amp;amp; ! -newer for the high end plus an AND operator.&lt;BR /&gt;Little more work, but can be took all the way down to the seconds level &amp;amp; easily scripted.&lt;BR /&gt; &lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 10 Oct 2003 08:28:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/list-by-a-date-range/m-p/3090510#M806427</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-10-10T08:28:51Z</dc:date>
    </item>
  </channel>
</rss>

