<?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: How can i order a file by date .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588627#M679442</link>
    <description>&lt;!--!*#--&gt;&amp;gt; and ls -lr&lt;BR /&gt;&lt;BR /&gt;Did that posting contribute anything (other&lt;BR /&gt;than repeating an error)?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; i need to order these lines by date?&lt;BR /&gt;&lt;BR /&gt;Even if the desire were to sort an "ls"&lt;BR /&gt;report, how would "-lr" use the date?</description>
    <pubDate>Tue, 23 Feb 2010 14:44:11 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-02-23T14:44:11Z</dc:date>
    <item>
      <title>How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588619#M679434</link>
      <description>&lt;P&gt;i have a file like this one (3500 rows apox):&lt;BR /&gt;user1 group1 Apr 12 2008 /home/user1.txt&lt;BR /&gt;user1 group3 May 18 2007 /home/user1.txt&lt;BR /&gt;user2 group5 Jan 23 2006 /home/user1.txt&lt;BR /&gt;user1 group1 Apr 12 2009 /home/user1.txt&lt;BR /&gt;user5 group6 Aug 17 2006 /home/user1.txt&lt;BR /&gt;user1 group3 Jul 16 2008 /home/user1.txt&lt;BR /&gt;user1 group8 Feb 15 14:13 /home/user1.txt&lt;BR /&gt;user5 group5 Jan 16 12:13 /home/user1.txt&lt;BR /&gt;user3 group1 Apr 15 2009 /home/user1.txt&lt;BR /&gt;user1 group8 Apr 13 2008 /home/user1.txt&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;i need to order these lines by date?&lt;BR /&gt;how can i do that?&lt;BR /&gt;do i have to make a program?&lt;BR /&gt;do you know something quick to do it?&lt;BR /&gt;&lt;BR /&gt;thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S.This thread has been moved from HP-UX&amp;gt;System Administration to HP-UX &amp;gt; languages-HP Forums Moderator&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 06:04:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588619#M679434</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2013-03-11T06:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588620#M679435</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# ls -lr&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 22 Feb 2010 21:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588620#M679435</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2010-02-22T21:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588621#M679436</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you didn't have mixed timestamp information with HH:MM and YYYY, then you could simply sort your file like this:&lt;BR /&gt;&lt;BR /&gt;# sort -k5n,5 -kM3,3 -k4n,4 file&lt;BR /&gt;&lt;BR /&gt;Since file timestamps that are within 6-months of the current date are reported with the HH:MM in place of the YYYY, you need to do something to manufacture the correct YYYY value as a sort key and/or generate a sort key that is an epoch seconds in the first place, and sort that.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Feb 2010 21:09:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588621#M679436</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-22T21:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588622#M679437</link>
      <description># sort -k5n,5 -kM3,3 -k4n,4 file&lt;BR /&gt;&lt;BR /&gt;the month sort above appears to be incorrect.  I believe it should read:&lt;BR /&gt;&lt;BR /&gt;sort -k5n,5 -k3M,3 -k4n,4</description>
      <pubDate>Mon, 22 Feb 2010 21:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588622#M679437</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2010-02-22T21:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588623#M679438</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; OldSchool: the month sort above appears to be incorrect. I believe it should read: sort -k5n,5 -k3M,3 -k4n,4&lt;BR /&gt;&lt;BR /&gt;Yes, I transposed the "M".  Thanks.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Feb 2010 21:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588623#M679438</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-22T21:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588624#M679439</link>
      <description>Easiest way is:&lt;BR /&gt;&lt;BR /&gt;ls -rlt</description>
      <pubDate>Mon, 22 Feb 2010 21:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588624#M679439</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2010-02-22T21:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588625#M679440</link>
      <description>"Easiest way is:&lt;BR /&gt;&lt;BR /&gt;ls -rlt" -and-&lt;BR /&gt;&lt;BR /&gt;"# ls -lr"&lt;BR /&gt;&lt;BR /&gt;the problem is she's asking about the contents of a file, as indicated by ..."i have a file like this one (3500 rows apox)...:&lt;BR /&gt;&lt;BR /&gt;given the existing contents, its pretty much a "sort" issue</description>
      <pubDate>Tue, 23 Feb 2010 14:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588625#M679440</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2010-02-23T14:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588626#M679441</link>
      <description>sort -k5n,5 -k3M,3 -k4n,4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and ls -lr&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;good luck</description>
      <pubDate>Tue, 23 Feb 2010 14:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588626#M679441</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-02-23T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588627#M679442</link>
      <description>&lt;!--!*#--&gt;&amp;gt; and ls -lr&lt;BR /&gt;&lt;BR /&gt;Did that posting contribute anything (other&lt;BR /&gt;than repeating an error)?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; i need to order these lines by date?&lt;BR /&gt;&lt;BR /&gt;Even if the desire were to sort an "ls"&lt;BR /&gt;report, how would "-lr" use the date?</description>
      <pubDate>Tue, 23 Feb 2010 14:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588627#M679442</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-23T14:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588628#M679443</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Jupinder: sort -k5n,5 -k3M,3 -k4n,4&lt;BR /&gt;&lt;BR /&gt;...which adds what given that this is what I posted *yesterday*?&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 23 Feb 2010 14:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588628#M679443</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-23T14:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588629#M679444</link>
      <description>&lt;!--!*#--&gt;&amp;gt; ...which adds what [...]&lt;BR /&gt;&lt;BR /&gt;The authority of a Red-Star "Expert in this&lt;BR /&gt;area"?&lt;BR /&gt;&lt;BR /&gt;It's a trend, apparently:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1409612" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1409612&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Could get annoying soon.  (Oops.  Too late.)&lt;BR /&gt;&lt;BR /&gt;Do these Forum points have some cash value of&lt;BR /&gt;which I'm unaware?</description>
      <pubDate>Tue, 23 Feb 2010 15:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588629#M679444</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-23T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588630#M679445</link>
      <description>&amp;gt;&amp;gt;Do these Forum points have some cash value of&lt;BR /&gt;which I'm unaware?&lt;BR /&gt;&lt;BR /&gt;Not anymore.  In the past when you reached a particular level you would get some awards, gift certificates typically, but that was stopped in 2000 or 2001.</description>
      <pubDate>Tue, 23 Feb 2010 15:46:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588630#M679445</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-02-23T15:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can i order a file by date ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588631#M679446</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] but that was stopped in 2000 or 2001.&lt;BR /&gt;&lt;BR /&gt;Perhaps word hasn't gotten around.  Sigh.</description>
      <pubDate>Tue, 23 Feb 2010 15:52:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-order-a-file-by-date/m-p/4588631#M679446</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-02-23T15:52:07Z</dc:date>
    </item>
  </channel>
</rss>

