<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268425#M333853</link>
    <description>&amp;gt; Directories names have the following format:&lt;BR /&gt;&lt;BR /&gt;Step 1: Use a date format like yyyy=mm-dd,&lt;BR /&gt;so that the names naturally sort into date&lt;BR /&gt;order.  Then simple programs like "head" or&lt;BR /&gt;"tail" can be used to find the last or first&lt;BR /&gt;N items in the list.</description>
    <pubDate>Fri, 12 Sep 2008 16:01:30 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-09-12T16:01:30Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268424#M333852</link>
      <description>I am storing the configuration information in a directory and then append the date to it. I am fine upto this point. I want to add some more functionality to it. i-e after storing the information, I want to keep the last 5 directories (5 most recent directories ) and delete the other.&lt;BR /&gt;&lt;BR /&gt;Directories names have the following format:&lt;BR /&gt;&lt;BR /&gt;drwxrwxrwx   2 root       users         8192 Sep 12 11:50 lvm.120908&lt;BR /&gt;drwxrwxrwx   2 root       users         8192 Aug 13 11:49 lvm.130808</description>
      <pubDate>Fri, 12 Sep 2008 14:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268424#M333852</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2008-09-12T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268425#M333853</link>
      <description>&amp;gt; Directories names have the following format:&lt;BR /&gt;&lt;BR /&gt;Step 1: Use a date format like yyyy=mm-dd,&lt;BR /&gt;so that the names naturally sort into date&lt;BR /&gt;order.  Then simple programs like "head" or&lt;BR /&gt;"tail" can be used to find the last or first&lt;BR /&gt;N items in the list.</description>
      <pubDate>Fri, 12 Sep 2008 16:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268425#M333853</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-09-12T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268426#M333854</link>
      <description>Or - you could just use ls -t or ls -rt to get the names in order of time modified, then use head or tail.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 12 Sep 2008 17:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268426#M333854</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-09-12T17:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268427#M333855</link>
      <description>&amp;gt;Pete: you could just use ls -t or ls -rt to get the names in order of time modified,&lt;BR /&gt;&lt;BR /&gt;This would fail if you just happened to remove a junk file in the directory.  The right solution as Steven says is to use rational date formats and not chauvinistic ones.&lt;BR /&gt;ISO 8601&lt;BR /&gt;&lt;A href="http://www.iso.org/iso/date_and_time_format" target="_blank"&gt;http://www.iso.org/iso/date_and_time_format&lt;/A&gt;</description>
      <pubDate>Sat, 13 Sep 2008 01:56:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4268427#M333855</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-13T01:56:56Z</dc:date>
    </item>
  </channel>
</rss>

