Unix/Linux

how to compare the timestamp of 2 files

steloflute 2013. 11. 22. 23:30

http://www.unix.com/showthread.php?t=60065

 

 

With bash and ksh, use the the following conditional expressions :

Code:
[[ file1 -nt file2 ]]
[[ file1 -ot file2 ]]


Read the man pages for more informations.