<?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 to sort all files by date in ascending order in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651050#M18432</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try using DIRE/DATE=CREATED will have a display  in serial order then using the output we can sort it out using script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shahina</description>
    <pubDate>Tue, 22 Jun 2010 09:50:21 GMT</pubDate>
    <dc:creator>shahina shaik</dc:creator>
    <dc:date>2010-06-22T09:50:21Z</dc:date>
    <item>
      <title>How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651047#M18429</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Would like to dir and list all the files by date. However seems like the sorting is on alphabetical order instead of the date.&lt;BR /&gt;&lt;BR /&gt;dir *.exe /date &lt;BR /&gt;&lt;BR /&gt;The date is mixed up, not sorting from the oldest to the current 1.&lt;BR /&gt;&lt;BR /&gt;Is there any command that could help? Thanks!</description>
      <pubDate>Tue, 22 Jun 2010 08:19:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651047#M18429</guid>
      <dc:creator>jess_14</dc:creator>
      <dc:date>2010-06-22T08:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651048#M18430</link>
      <description>Jess,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is a multi-step process:&lt;BR /&gt;&lt;BR /&gt;- produce the list of all files in a format that can be sorted (e.g., DIRECTORY/BRIEF/NOHEAD/NOTRAIL/DATE/OUTPUT=&lt;TEMPORARYFILE&gt;)&lt;BR /&gt;&lt;BR /&gt;- the resulting output will be a file of two-line entries; reformat the entries into single lines (my preference would be "date" followed by "filename")&lt;BR /&gt;&lt;BR /&gt;- use SORT to sort the resulting file.&lt;BR /&gt;&lt;BR /&gt;This process is far simpler if one temporarily sets the process' time/date format to a collating friendly format (if memory recalls correctly, details are in Section 27.6 of the Programming Concepts manual, available from the HP OpenVMS WWW site at &lt;A href="http://www.hp.com/go/openvms." target="_blank"&gt;http://www.hp.com/go/openvms.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;One could also do this using pipes. My description assumes no particular version of OpenVMS.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;&lt;/TEMPORARYFILE&gt;</description>
      <pubDate>Tue, 22 Jun 2010 08:46:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651048#M18430</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2010-06-22T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651049#M18431</link>
      <description>Hi Jess,&lt;BR /&gt;&lt;BR /&gt;Yes, output of $ DIR command is based on the alphabetical order. And you need to write the script to meet your requirement.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2010 09:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651049#M18431</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-22T09:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651050#M18432</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try using DIRE/DATE=CREATED will have a display  in serial order then using the output we can sort it out using script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Shahina</description>
      <pubDate>Tue, 22 Jun 2010 09:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651050#M18432</guid>
      <dc:creator>shahina shaik</dc:creator>
      <dc:date>2010-06-22T09:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651051#M18433</link>
      <description>We had such a discussion here (or in c.o.v ?) sometime ago.&lt;BR /&gt;Results are in one of my DCL procedures:&lt;BR /&gt;&lt;BR /&gt; &lt;A href="http://wwwvms.mppmu.mpg.de/vms$common/com/dir_by_date.com" target="_blank"&gt;http://wwwvms.mppmu.mpg.de/vms$common/com/dir_by_date.com&lt;/A&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;A href="http://wwwvms.mppmu.mpg.de/vms$common/com/dir_by_date2.com" target="_blank"&gt;http://wwwvms.mppmu.mpg.de/vms$common/com/dir_by_date2.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;look for QDSB* in&lt;BR /&gt;  &lt;A href="http://www.quadratrix.be/downloads" target="_blank"&gt;http://www.quadratrix.be/downloads&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2010 10:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651051#M18433</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-06-22T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651052#M18434</link>
      <description>Jesse, did you search at all?&lt;BR /&gt;&lt;BR /&gt;google: +openvms +date +sorted +directory optionally add: +site:itrc.hp.com&lt;BR /&gt;&lt;BR /&gt;finds:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1190275" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1190275&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;which reads..&lt;BR /&gt;&lt;BR /&gt;You can tell sort a magic collating sequence to get the (english) months right.&lt;BR /&gt;See old topic (1996) in c.o.v&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://groups.google.com/group/comp.os.vms/search?hl=en&amp;amp;group=comp.os.vms&amp;amp;q=hein+collating_sequence" target="_blank"&gt;http://groups.google.com/group/comp.os.vms/search?hl=en&amp;amp;group=comp.os.vms&amp;amp;q=hein+collating_sequence&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or more recently here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1095459" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1095459&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And finally, here is a perl 'one liner':&lt;BR /&gt;&lt;BR /&gt;$ perl -e "while (&amp;lt;*.tmp;*&amp;gt;) { $f{$_}=-M } foreach $x (sort {$f{$b}&amp;lt;=&amp;gt;$f{$a}} keys %f){ print qq($x\n)}"&lt;BR /&gt;&lt;BR /&gt;That was sorted on modification date, new to old. For new to old switch the $a and $b around.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ pipe dir/col=1/wid=fil=55/nohead/notrai/date | sort/spec=sort_by_date.sort sys$pipe sys$output&lt;BR /&gt;&lt;BR /&gt;----------- sort_by_date.sort -----------&lt;BR /&gt;/collating_sequence=&lt;BR /&gt;(&lt;BR /&gt;sequence=("AN","EB","AR","PR","AY","UN","UL","UG","EP","CT","OV","EC",&lt;BR /&gt;" ","0"-"9"),&lt;BR /&gt;fold&lt;BR /&gt;)&lt;BR /&gt;! second and third letters of each month&lt;BR /&gt;&lt;BR /&gt;/field=(name=year,pos:65,size:4)&lt;BR /&gt;/field=(name=month,pos:62,size:2) ! start at SECOND letter&lt;BR /&gt;/field=(name=day,pos:58,size:2)&lt;BR /&gt;/field=(name=time,pos:70,size:11)&lt;BR /&gt;! assume "14-OCT-1986 09:14:46.00" at position 58&lt;BR /&gt;/key=(year,descending)&lt;BR /&gt;/key=(month,descending)&lt;BR /&gt;/key=(day,descending)&lt;BR /&gt;/key=(time,descending)&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2010 10:14:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651052#M18434</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2010-06-22T10:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651053#M18435</link>
      <description>Correct link for the quadratix qdsb program:&lt;BR /&gt;&lt;BR /&gt; &lt;A href="http://www.quadratrix.be/qdsb.html" target="_blank"&gt;http://www.quadratrix.be/qdsb.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2010 10:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651053#M18435</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-06-22T10:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651054#M18436</link>
      <description>Hi Jess,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; However seems like the sorting is on alphabetical order instead of the date.&lt;BR /&gt;Yes, the DIR command always displays the files in the directory in &lt;BR /&gt;alphabetical order of filenames. This is the behavior in VMS.&lt;BR /&gt;&lt;BR /&gt;Even if you give a selection criteria such as "/SINCE" or "/BEFORE",&lt;BR /&gt;the names would eventually get displayed in alphabetical order of filenames&lt;BR /&gt;itself.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Is there any command that could help?&lt;BR /&gt;No direct command.&lt;BR /&gt;As others have suggested, you need to write a command procedure for this.&lt;BR /&gt;it would be 2 step procedure.&lt;BR /&gt;* First step would be to get the output of DIR command with "/SINCE" or&lt;BR /&gt; "/BEFORE" qualifier. Take this output to a file.&lt;BR /&gt;* Second step would be to sort the output file based on the date.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Tue, 22 Jun 2010 11:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651054#M18436</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-22T11:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651055#M18437</link>
      <description>BTW a caveat:&lt;BR /&gt;&lt;BR /&gt;All procedures using the output of a DIRECTORY command for sorting have a problem if file-specifications are longer than the space available in the DIR output (the /width=filename=n). &lt;BR /&gt;Directory the wraps the rest of the output to a second line, and sort will be confused.&lt;BR /&gt;&lt;BR /&gt;My dir_by_date2.com avoids this trap (but the output is a bit unusual with the date in front of the file-name).</description>
      <pubDate>Tue, 22 Jun 2010 11:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651055#M18437</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-06-22T11:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651056#M18438</link>
      <description>and of course with GNV simply:&lt;BR /&gt;&lt;BR /&gt;  ls -lt&lt;BR /&gt;  ls -ltr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jun 2010 11:43:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651056#M18438</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-06-22T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651057#M18439</link>
      <description>Hi Joseph,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Directory the wraps the rest of the output to a second line,&lt;BR /&gt;&amp;gt;&amp;gt; and sort will be confused.&lt;BR /&gt;Thats a good point.&lt;BR /&gt;The parsing routine has to consider this scenario that a filename can get&lt;BR /&gt;displayed in multiple lines and needs to be able to handle that.&lt;BR /&gt;&lt;BR /&gt;Also another thing to consider (may not be in this case),&lt;BR /&gt;When parsing a line of DIR output, program cannot check directly for any&lt;BR /&gt;known characters like "(" and so on. i.e. it cannot rely on the fact that&lt;BR /&gt;the "(" ... is a delimiter. These characters can be a part of the filename&lt;BR /&gt;(ODS5 filenames allows that). The program needs to be take care of this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Tue, 22 Jun 2010 12:02:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651057#M18439</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-22T12:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651058#M18440</link>
      <description>One day maybe HP will add a /SORT=x capability to $ DIRECTORY and let us sort by filesize, by any date and by (what else?), of course with the default being by filename ... but it's not available yet.</description>
      <pubDate>Thu, 24 Jun 2010 02:29:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651058#M18440</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2010-06-24T02:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651059#M18441</link>
      <description>John,Jess&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; One day maybe HP will add a /SORT=x capability to $ DIRECTORY&lt;BR /&gt;Let me know if there is any business requirement for availability of this feature.&lt;BR /&gt;I can add this to the wish list along with the supporting text.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Thu, 24 Jun 2010 02:36:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651059#M18441</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-24T02:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651060#M18442</link>
      <description>&lt;BR /&gt;&amp;gt; One day maybe HP will add a /SORT=x&lt;BR /&gt;&amp;gt; capability to $ DIRECTORY and let us sort&lt;BR /&gt;&amp;gt; by filesize, by any date and by (what&lt;BR /&gt;&amp;gt; else?), of course with the default being&lt;BR /&gt;&amp;gt; by filename ... but it's not available&lt;BR /&gt;&amp;gt; yet.&lt;BR /&gt;&lt;BR /&gt;It's already there. Check out QDSB (as Joseph already pointed out) at&lt;BR /&gt;&lt;A href="http://www.quadratrix.be/qdsb.html" target="_blank"&gt;http://www.quadratrix.be/qdsb.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)</description>
      <pubDate>Thu, 24 Jun 2010 04:52:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651060#M18442</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2010-06-24T04:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651061#M18443</link>
      <description>Hi Kris,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; It's already there. Check out QDSB (as Joseph already pointed out) at&lt;BR /&gt;&amp;gt;&amp;gt; &lt;A href="http://www.quadratrix.be/qdsb.html" target="_blank"&gt;http://www.quadratrix.be/qdsb.html&lt;/A&gt;&lt;BR /&gt;Yes, thats right. I missed seeing this before.&lt;BR /&gt;&lt;BR /&gt;I did a quick instal and checked it out.&lt;BR /&gt;It provides the feature which sorts and displays entries in the directory based&lt;BR /&gt;on name, creation date, type and so on.&lt;BR /&gt;Nice tool.&lt;BR /&gt;&lt;BR /&gt;Jess,&lt;BR /&gt;The QDSB tool gives you the feature that you are looking for.&lt;BR /&gt;In case you have not already started using it, you can start now.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Thu, 24 Jun 2010 05:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651061#M18443</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-24T05:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651062#M18444</link>
      <description>Hi Kris,&lt;BR /&gt;&lt;BR /&gt;Even I have also tried this tool. &lt;BR /&gt;This is really a nice tool. Thanks for letting us to know about such a good tool.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2010 05:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651062#M18444</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-24T05:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651063#M18445</link>
      <description>And since I work on a linux desktop, I got used to use the "ls" command on VMS as well.&lt;BR /&gt;My above reply to use GNV ls -lt, ls -ltr means:&lt;BR /&gt; either define &lt;BR /&gt; bash :== $GNU:[bin]bash (GNV$GNU:[BIN] for newer versions of GNV)&lt;BR /&gt; or have GNU:[bin] in Your DCL$path logical list.&lt;BR /&gt;&lt;BR /&gt;Then define the DCL ls command as&lt;BR /&gt;  ls == "bash -c ""ls"&lt;BR /&gt;(sic ! the missing double quote at the end is intended).&lt;BR /&gt;Through the "bash -c" call ls works with (unix-style) wildcards, while a direct "ls := $GNU:[bin]ls" will not work with wildcards.&lt;BR /&gt;&lt;BR /&gt;In a similar fashion other bash shell commands can be defined:&lt;BR /&gt;$ rm == "bash -c ""rm"&lt;BR /&gt;$ cat == "bash -c ""cat"&lt;BR /&gt;$ gdiff == "bash -c ""diff"&lt;BR /&gt;$ grep == "bash -c ""grep"&lt;BR /&gt;$ egrep == "bash -c ""egrep"&lt;BR /&gt;$ fgrep == "bash -c ""fgrep"&lt;BR /&gt;$ touch == "bash -c ""touch"&lt;BR /&gt;&lt;BR /&gt;"cd" cannot be used like this, because it is  a bash internal command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2010 07:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651063#M18445</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-06-24T07:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651064#M18446</link>
      <description>&lt;BR /&gt;Sorting DIRECTORY by modification date&lt;BR /&gt;&lt;BR /&gt;[posted to comp.os.vms by Peter Weaver (WeaverConsultingServices@sympatico.ca) on 29-APR-2004]&lt;BR /&gt;&lt;BR /&gt;$ ASSIGN LIB$DATE_FORMAT_037,-&lt;BR /&gt;   LIB$TIME_FORMAT_001 -&lt;BR /&gt;   LIB$DT_FORMAT/USER_MODE&lt;BR /&gt;$! Ignore any DIR symbols&lt;BR /&gt;$ directx -  &lt;BR /&gt;   /date=modified-&lt;BR /&gt;   /width=(file:80,display:132)-&lt;BR /&gt;   /out=out.txt&lt;BR /&gt;$ sort out.txt -&lt;BR /&gt;    /key=(pos:83,siz:22) tt:&lt;BR /&gt;&lt;BR /&gt;should do it as long as someone with privileges did the @SYS$STARTUP:LIB$DT_STARTUP first.</description>
      <pubDate>Thu, 24 Jun 2010 18:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651064#M18446</guid>
      <dc:creator>Keith Cayemberg</dc:creator>
      <dc:date>2010-06-24T18:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651065#M18447</link>
      <description>Install and configure GNV.&lt;BR /&gt;&lt;BR /&gt;$ bash&lt;BR /&gt;ls -tla&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2010 19:13:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651065#M18447</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-06-24T19:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort all files by date in ascending order</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651066#M18448</link>
      <description>Hi Jess,&lt;BR /&gt;&lt;BR /&gt;I hope you are using (might have become expert :)) the QDSB tool by now.&lt;BR /&gt;&lt;BR /&gt;Also, Refer the following link which says how you can thank the forum -&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Mon, 28 Jun 2010 14:20:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-sort-all-files-by-date-in-ascending-order/m-p/4651066#M18448</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-28T14:20:30Z</dc:date>
    </item>
  </channel>
</rss>

