Afficher une date yyyy-mm-dd avec un ls

Bonjour,

Je souhaiterais afficher une date au format yyyy-mm-dd avec un ls SOUS SOLARIS 9.

L'équivalent existe sous linux avec la commande : ls --full-time

Je sais que cette option existe sous solaris 10, mais je ne peux pas migrer mon OS !

Merci de votre aide.

Bobo
Configuration: Windows XP
Internet Explorer 6.0

2 réponses

  1. Bonjour,

    Je ne connais pas du tout SOLARIS,
    Est-tu obligé d'utiliser ls ?

    Sinon, tu peux recuperer la date de modif avec 'stat' si tu as cette commande...

    Par ex:
    find .... -exec stat ....

    Si nécessaire suivi d'un sed pour formater, mais ca ne devrait pas etre nécessaire, il y a des options de format aussi dans 'stat'

    Bonne journée !
    0
    1. Contributeur
      Hello
      Avec Solaris, il doit y avoir un "compagnion CD" contenant les commandes GNU utilities compilées dont ls.
      Sinon récupérer coreutils là: http://www.sunfreeware.com/indexsparc9.html

       coreutils-6.4-sol9-sparc-local.gz GNU Coreutils are a set of basic file, shell, and text manipulation utilities for the GNU operating system that are expected to exist on every operating system. Previously, they were offered as three individual distributions: fileutils, shellutils, and textutils - installs in /usr/local. Dependencies: libiconv and to obtain /usr/local/lib/libgcc_s.so.1 you will need to have installed libgcc-3.4.6 or gcc-3.4.6  or higher.
      The programs included are
      
      [         date       false     ln       paste     sha1sum  test      vdir
      basename  dd         fmt       logname  pathchk   shred    touch     wc
      cat       df         fold      ls       pinky     sleep    tr        who
      chgrp     dir        groups    md5sum   pr        sort     true      whoami
      chmod     dircolors  head      mkdir    printenv  split    tsort     yes
      chown     dirname    hostid    mkfifo   printf    stat     tty
      chroot    du         hostname  mknod    ptx       stty     uname
      cksum     echo       id        mv       pwd       sum      unexpand
      comm      env        install   nice     readlink  sync     uniq
      cp        expand     join      nl       rm        tac      unlink
      csplit    expr       kill      nohup    rmdir     tail     uptime
      cut       factor     link      od       seq       tee      users
      
      0