Unix Date
Posted in 1992
Mike Gordon writes: >>>>>> TO: Stuart Hemming SUBJECT: Unix Date Stuart, Are you looking for a date conversion like this: Thu Sep 24 11:24:40 PDT 1992 If this is close, the Unix Command: date <return> will print this to the terminal screen. You can pipe the date command thru the "cut" utility to cut out specific columns within the date format, then print it on the terminal screen or direct it into a file. >>>>>>>> There are two other possibilities that come to mind. One is to use awk to acomplish the same idea that cut will. Else if you are wanting parts of the date within a c-shell script you could do the following: set d = `date` set dt = "$d[2] $d[3] $d[6]" which would result in $dt being equal to Sep 24 1992(using example above).