[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] une simple question unix



LOUVIAUX Vincent wrote:
> 
> c etait pour une machine HP UX
> et ca marche pas

Il faut utiliser la version GNU de date.
Tu peux toujours l'installer en allant du cote de
ftp://ftp.dkuug.dk/pub/gnu/sh-utils-1.16.tar.gz
Le programme 'date' fait partie de la serie utilitaire shell GNU.

 
> >date --date "1 day ago"
> date: illegal option -- -
> Usage: date [-u] [ mmddhhmm[yy] ] [ +format ]
> -------------
> Original Text
> From: Pascal A. Dupuis <dupuis@lei.ucl.ac.be>, on 10/02/99 9:32:
> To: SMTP@MASTER.PER@BELGACOM[<linux-team@rtfm.be>]
> 
> On Wed, 10 Feb 1999, LOUVIAUX Vincent wrote:
> 
> > quelqu un sait comment avec une simple commande unix, on peut avoir la
> date
> > de la veille ?
> >
> date --date "1 day ago"
> Tue Feb  9 09:32:21 CET 1999 (format de sortie configurable)
> Simple, non ?
> 
> date --version
> date (GNU sh-utils) 1.16
> 
> Pascal Dupuis
> 
> --
> linux : un noyau
> windows : des pépins
---------
This message was send by Majordomo 1.94.3. Please repport problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.