User Profile

Collapse

Profile Sidebar

Collapse
Manogna
Manogna
Last Activity: Dec 10 '09, 10:30 AM
Joined: Jan 18 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Manogna
    started a topic conversion of ddate to seconds

    conversion of ddate to seconds

    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?
    ...
    See more | Go to post

  • 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...
    See more | Go to post

    Leave a comment:


  • 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...
    See more | Go to post
    Last edited by eWish; Mar 5 '08, 11:26 PM. Reason: Please use code tags

  • Manogna
    replied to error in check_time function
    in Perl
    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,
    ...
    See more | Go to post

    Leave a comment:


  • Manogna
    started a topic error in check_time function
    in Perl

    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";

    }...
    See more | Go to post
    Last edited by numberwhun; Feb 8 '08, 10:45 AM. Reason: add code tags

  • Manogna
    replied to error while using the date::calc module
    in Perl
    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........ ..........
    See more | Go to post

    Leave a comment:


  • Manogna
    replied to error while using the date::calc module
    in Perl
    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...
    See more | Go to post
    Last edited by numberwhun; Feb 6 '08, 01:28 PM. Reason: add code tags

    Leave a comment:


  • Manogna
    started a topic error while using the date::calc module
    in Perl

    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...
    See more | Go to post
    Last edited by numberwhun; Feb 6 '08, 01:27 PM. Reason: add code tags

  • Manogna
    replied to efficient searching methods than grep
    in Perl
    thank you!


    But this also taking more time. As the file is very big.


    can u suggest any other method?


    thanks and regards,
    Manogna.
    See more | Go to post

    Leave a comment:


  • Manogna
    started a topic efficient searching methods than grep
    in Perl

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...