Tagged: older file

0

-nt file test operator in bash

File based condition for if statements in bash Condition: [ newerfile -nt olderfile ] Description: newerfile was changed more recently than olderfile, or if newerfile exists and olderfile doesn’t. Example: if [ file1.txt -nt...