hi! all,
mine is a Free bsd system.
I want to convert the date to seconds.
i used the date +%s command for conversion. but in that it converting the date in seconds including the week.
My date is as in the formte " Mar 17 10:10:10 2008" . how to convert this to seconds by date command?
and how to convert the seconds in this formate by date command?
...
User Profile
Collapse
-
conversion of ddate to seconds
-
thank you very much! for ur response.
i want to write the data by parellel execution of the respective directory files to thier respective big files.
i tried ur code its working properly but i am willing to use the regular expressions in that.
i tried as follows but its is not worikng properly...
zegrep -vh "^ORA |^\s*$ |read_time|" dirname/*.gz > bigfile
with... -
how to reduce the time complexity while reading files
hi! all,
in a directory nearly 10 zipped file are available.
totally the size of the all files is nearly 15GB.
i have to retrive the line which dont have the text "ORA" from each file and i have to write this data to a another big file.
i got it but it is taking the time of nearly 5 minutes to complete the process.But i have to process 7 directories at a time..so totally it is... -
In this if I pass a valid parameters the outcome should be valid time.
Otherwise the outcome should be an Invalid time..
But I am sending Invalid parameters but I am getting the out come as valid time .why?
I am doing this to do some functionalities if hh,mm,ss exactly valid.otherwise the functionalities should not work..
Please help me..as I am new to Perl.
thank U,
...Leave a comment:
-
error in check_time function
if pass the values to check_time like this its getting different values:
[code=perl]
use Date::Calc qw(:all);
$hh="jjjjjjjjjj jjjjjjj";
$mm="bnsdgs";
$ss="kdhhgfdfdh ";
if(check_time($ hh,$mm,$ss))
{
print "valid time:";
}
else
{
print "Inva;id time";
}... -
thank u very much!
for all of u!
i installed the modules in my machine and i got the respective functions for manipulate the data..
thanks and regards,
Manogna........ ..........Leave a comment:
-
hi!
thank u for ur reply!
if i use the use ::DBI also it is getting the following error...like this..
i did not understood why it is comming like that...
the code in ex.pl is:
[code=perl]
use DBI;
print "hello";
[/code]
Can't locate DBI.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005...Leave a comment:
-
error while using the date::calc module
hi!
i got the following error while using the Date::Calc module in perl.
plz help me..
the file is ex.pl
contains code like this:
[code=perl]
use strict;
use Date::Calc();
print "hello";
[/code]
Can't locate Corp.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach... -
thank you!
But this also taking more time. As the file is very big.
can u suggest any other method?
thanks and regards,
Manogna.Leave a comment:
-
efficient searching methods than grep
hi !
I have two big files like A anb B.
A contains nearly 1000 lines.
and B contains 1500000 lines.
suppose
A contains like
cat mat things go jhf
hem can do that
meant that like this
B contains like
apple come into
do you know that
...
No activity results to display
Show More
Leave a comment: