$ ls -l -rw-r--r-- 1 oracle oinstall 0 1月 13 18:45 a -rw-r--r-- 1 oracle oinstall 0 1月 13 18:46 b $ if [[ a -ne b ]]; then > echo a is newer than b. > else > echo a is older than b. > fi a is older than b.
$ ls -l -rw-r--r-- 1 oracle oinstall 0 1月 13 18:45 a -rw-r--r-- 1 oracle oinstall 0 1月 13 18:46 b $ if [[ a -ne b ]]; then > echo a is newer than b. > else > echo a is older than b. > fi a is older than b.