Getting UNIX time from the shell
Jean-Pierre Radley
jpr at dasys1.UUCP
Sat Jun 24 23:43:29 AEST 1989
In article <10800028 at bradley> vijay at bradley.UUCP writes:
>You do not need to write a C program to do that. A one liner
>shell command will do it for you (In C Shell or Bourne Shell).
>All you need is :
>
> date | cut -f4,5 -d" "
>
I never use two processes where one will do.
date +%T
gives me the time. (Oh well, so it doesn't give me my timezone, but
that's really an invariant, no?)
--
Jean-Pierre Radley CIS: 72160,1341 jpr at jpradley.UUCP
More information about the Comp.unix.questions
mailing list