home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sources / wanted / 4119 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.1 KB

  1. Path: sparky!uunet!mcsun!corton!dmi.ens.fr!beig
  2. From: beig@dmi.ens.fr (Jacques Beigbeder)
  3. Newsgroups: comp.sources.wanted
  4. Subject: ls with a format like date +%d-%m-%y?
  5. Message-ID: <1992Aug27.175710.28169@ens.fr>
  6. Date: 27 Aug 92 17:57:10 GMT
  7. Sender: news@ens.fr (USENET News System)
  8. Reply-To: beig@dmi.ens.fr
  9. Organization: Ecole Normale Superieure, Paris, France
  10. Lines: 17
  11. Nntp-Posting-Host: merisier.ens.fr
  12.  
  13. Often when writing shells treating files, we start from an
  14. ls. But:
  15. . not all the informations are useful. Though they are quickly
  16. removed with awk/sed...
  17. . the date is hard to parse: if there is no : in sone field,
  18. this field is the year. Otherwise it's hour:min. And getting
  19. the year is tricky: in Mar, seeing Dec means Dec from the last
  20. year. In summary, it's long to analyze.
  21.  
  22. Isn't there some ls with a + option like in date(1)?
  23. If there isn't, I'll write it.
  24.  
  25. -- 
  26. Jacques Beigbeder                    | Internet: beig@ens.fr
  27. Service de Prestations Informatiques |  Bitnet : beig@frulm63
  28. Ecole Normale Superieure             |     Tel : (33-1) 44-32-37-96
  29. F75230 Paris Cedex 05                |     Fax : (33-1) 44-32-20-80
  30.