Find the answer to your Linux question:
Results 1 to 3 of 3
Hi How to compare date of two files in shell script? I need it immediately, if you then it will be very usefull for me? Thanks Vajiramani...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    Thumbs up How to compare the dates in shell script


    Hi

    How to compare date of two files in shell script?

    I need it immediately, if you then it will be very usefull for me?

    Thanks
    Vajiramani

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Vajiramani,

    Try the file test operators -nt and -ot.

    Check the man page for test and look through a couple of scripting tutorials.
    Go here for the tutorials:

    http://www.freeos.com/guides/lsst/
    http://tldp.org/LDP/abs/html/


    Regards

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    hi dear

    its helpful

    thank you

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •