[Info-vax] Still no DIR/SORT_BY_TIME

Henry Crun mike at rechtman.com
Thu Aug 13 12:52:31 EDT 2015


Replying to OP:

Create a file called e.g. ORDER.SRT with contents:
----------<start>--------------
      /collating_sequence=(sequence= 

       ("AN", 

       "EB", 

       "AR", 

       "PR", 

       "AY", 

       "UN", 

       "UL", 

       "UG", 

       "EP", 

       "CT", 

       "OV", 

       "EC",
       "0"-"9"), 

        modification=(" "="0"), fold) 

      /field=(name=year,pos:57,siz:4) 

      /field=(name=month,pos:54,siz:3) 

      /field=(name=day,pos:51,siz:2) 

      /field=(name=time,pos:62,siz:11) 

      /key=year 

      /key=month 

      /key=day 

      /key=time
-----------------<end code>---------------

Then try:
$ pipe DIR/COL=1/WID=(FILENAME:47)/DATE | SORT/SPEC=ORDER.SRT SYS$PIPE SYS$OUTPUT

N.B. Dunno where I found this, from many moons ago. works for me.
obviously you can change as you see fit...



-- 
Mike R.
Home: http://alpha.mike-r.com/
QOTD: http://alpha.mike-r.com/php/qotd.php
No Micro$oft products were used in the URLs above, or in preparing this message.
Recommended reading: http://www.catb.org/~esr/faqs/smart-questions.html#before


--- news://freenews.netfront.net/ - complaints: news at netfront.net ---



More information about the Info-vax mailing list