#! /bin/bash # # newerfiles - demonstrates some bash features related to files. # Call this script with two arguments, names of files. # # Tells you which file is newer # if [ $1 -nt $2 ]; then echo "$1 is newer than $2" fi if [ $1 -ot $2 ]; then echo "$1 is older than $2" fi