in reply to long directory listing in UNIX
Breaking that into pieces, we have:-rw-r--r-- 1 jeffp dialup 1233 Jul 30 18:30 resume.txt
You actually need to modify that a tiny bit, in case the file was modified more than a year ago; but that's an academic exercise.use POSIX 'strftime'; my ($perm, $links, $uid, $gid, $size, $lmod) = (stat $file)[2,3,4,5,7,9] my $user = getpwuid($uid); my $group = getgrgid($gid); my $date = strftime("%b %e %R", localtime($lmod));
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: long directory listing in UNIX
by camelman (Sexton) on Aug 29, 2001 at 00:55 UTC | |
by japhy (Canon) on Aug 29, 2001 at 01:05 UTC |