SUMMARY:ls to display the year

From: Tze Wong (mongki_tze@yahoo.com)
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
ftp://prep.ai.mit.edu/pub/gnu/find*

2) PERL! ( thanks for Gerhard den Hollander and Jay Lessert for their
scripts )
#!/volume/bin/perl
foreach $file (<*>){
        ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
         $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 "ctime.pl";
open(TFILE,$ARGV[0]) || die "Can't open file $ARGV[0]: $!\n";
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
    $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
ftp://ftp.fu-berlin.de/pub/unix/gnu/fileutils/fileutils-4.0.tar.gz

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

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



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