What does -nt do for this case?
LOG_DIR_PATH=/home/users/chinboon/test-chinboon/logs/sandbox1
do if [ $i -nt ${LOG_DIR_PATH}/test ]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
-ntflag checks if file$ihas a more recent modification date than file${LOG_DIR_PATH}/test.See
man 1 testfor all available flags.I am pointing you to
man testsinceis a shorthand for