On 2002-11-20 23:57, How Can ThisBe <[EMAIL PROTECTED]> wrote:
> >From: Giorgos Keramidas <[EMAIL PROTECTED]>
> >Subject: Re: How to return file date only?
> >
> >FreeBSD has stat(1).
> >
> >keramida@gothmog[01:50]/home/keramida> stat -f '%c' .
> >1037835701
>
> 'stat' does not seem to be installed (at least by default) on a FreeBSD 
> 4.7-STABLE system
>
> $ stat -f '%c' .
> stat: not found
>
> Any other ideas?

Perl :)

        % cat ctime.pl
        use POSIX qw(gmtime strftime);
        if (defined($ARGV[0])) {
            ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
                $atime,$mtime,$ctime,$blksize,$blocks) = stat($ARGV[0]);
            print strftime('%T', gmtime($ctime)) . "\n";
        }

        % perl ctime.pl .
        00:07:00


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to