PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

bash(1): GNU Bourne-Again SHell - Linux man page

jeudi 19 mars 2015 à 15:11
GuiGui's Show - Liens 19/03/2015
« file1 -nt file2
   True if file1 is newer (according to modification date) than file2, or if file1 exists and file2 does not.
file1 -ot file2
   True if file1 is older than file2, or if file2 exists and file1 does not. »

Application
if [ "/path/to/file1" -ot "/path/to/file2" ]; then
   echo "FAIL"
fi
(Permalink)