|
compare files acess time
I need to compare x file with y file.
If x file is newer than y file do xxxx;
(I used touch -t yymmddxxx to chnage the time for y file)
How can i do that?
I tried use
if [ $x -ot $y ]
then
echo "Xxx";;
fi
But cant....any other good ways to do it?
|