26, 2003 4:34 AM
To: Multiple recipients of list ORACLE-L
Subject: Re: Perl Breakdown
hello to everybody
the ls behaviour regarding date information is POSIXly
correct. after 6 months the date is displayed in a different
way.only linux user have an optional parameter to change
hello to everybody
the ls behaviour regarding date information is POSIXly correct. after 6 months the
date is displayed in a different way.only linux user have an optional parameter to
change the timeformat for all displayed items.
the perl script - for purist
scalar localtime stat \${1}\
Having the same problem of inconsistent output from ls (and other Unix
commands!), I grabbed els from http://www.sourceforge.net. I use els -p
+Gmsn +TMDY3, aliased of course, to produce consistent listings everytime.
For an ls -l equivalent, I use els -l +TMDY3.
HTH! GL! :)
Rich
Rich Jesse
Interesting utility, though you need to navigate to the CVS
browser to actually get the file.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/els/els/
Jared
On Saturday 25 January 2003 07:23, Jesse, Rich wrote:
Having the same problem of inconsistent output from ls (and other Unix
This will make Jared happy, I finally broke down and fumbled my way through
some perl.
function f_file_date {
{
print #!/usr/bin/perl
print print scalar(localtime((stat(\${1}\))[9]))
} tmp.pl
perl tmp.pl
rm tmp.pl
}
This little diddy can be placed right in my .ksh script to
[EMAIL PROTECTED]
cc:
Subject:Perl Breakdown
This will make Jared happy, I finally broke down and fumbled my way
through
some perl.
function f_file_date {
{
print #!/usr/bin/perl
print print scalar(localtime((stat(\${1}\))[9]))
} tmp.pl
perl tmp.pl
rm