On Thu, 2003-03-13 at 08:09, Anthony E. Greene wrote: > On 13-Mar-2003/08:53 -0500, "Anthony E. Greene" <[EMAIL PROTECTED]> wrote: > >On 13-Mar-2003/12:02 +0000, Zhi Cheng Wang <[EMAIL PROTECTED]> wrote: > >>thanks for the message. but i do not want to add current time, the time > >>stamp of the file is needed > > > >There was a thread about that on this list a few months ago. There is no > >easy solution that will work across multiple versions of Linux. > > Correction: There is no easy solution that will work across multiple > versions of UNIX. All the Linux boxes should be using a compatible version > of GNU ls. >
Does stat work better? date -d "`stat -l $filename |awk -F : '/Modify/ {print $2 ":" $3$4$5$6}'`" +%Y-%m-%d ugly but it appears to work date -d "`stat -l libflashplayer.so |awk -F : '/Modify/ {fdate=$2 ":" $3$4$5$6;print fdate}'`" +%Y-%m-%d 2003-01-03 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list