SUMMARY:ls to display the year

From: Tze Wong (
Date: Thu Jan 21 1999 - 22:09:46 CST

Hi managers, sorry for the late post,
here is the summary for what i received:
1) use the find or GNU find which is available in*

2) PERL! ( thanks for Gerhard den Hollander and Jay Lessert for their
scripts )
foreach $file (<*>){
         $atime,$mtime,$ctime,$blksize,$blocks) = stat($file);
        $time = localtime($mtime);
        print "$file : $time\n";
#! /usr/local/bin/perl
# print access time, modify time, and change time for a file
require "";
open(TFILE,$ARGV[0]) || die "Can't open file $ARGV[0]: $!\n";
    $blksize,$blocks) = stat(TFILE);
printf("File $ARGV[0]:\n\tatime: %s\tmtime: %s\tctime: %s",
    &ctime($atime), &ctime($mtime), &ctime($ctime));
3) stat from comp.sources.unix
4) fileutils available from

I have only tried out the perl script, and its gives what I want. I
will check out the others when I got the time.

Again, thanks for
Seth Rothenberg
Sebastian Benoit
Rich Kulawiec
Karl Vogel
Nickolai Zeldovich
Michael Wang
Gerhard den Hollander
Roger Fujii
Jay Lessert

Get your free address at

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:14 CDT