Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gftech

  1. gftech

    how to find a file's age with respect to current time

    Thanks brigmar, your piece is cool!
  2. gftech

    how to find a file's age with respect to current time

    Thank you all for your inputs. I went stat() and solved my problem: # get cur time `touch curtime` my $curtime = (stat("curtime"))[9]; unlink "curtime"; # find file age if (($curtime - (stat($thefile))[9]) > AGE) { # process $thefile }
  3. gftech

    how to find a file's age with respect to current time

    Hi, I've used the -M operator to find a file's age in days. However, -M returns the age with respect to the program start time. Now that I plan to run my program as a daemon, I need to find a file's age wrt the *current* time. Any body out there knows how I can do that? Thanks & regards,
  4. gftech

    Filtering a file to remove certain hex codes

    >0x3 looks a little strange to me Sorry, it was a typo. x03.
  5. gftech

    Filtering a file to remove certain hex codes

    Hi, I receive XML files to extract data from. Some times the files come with invalid XML characters such as 0x3, which caused the XML parser (written in Java) to fail. I'm thinking of a Perl preprocessor to remove the invalid chars. Any body has any idea how this can be done in Perl? Thanks,

Part and Inventory Search

Back
Top