I read a file which have all the file names line by line which ($var) returns the file names in the directory /home/mydir
.
input="/home/mydir/test/myfile"
while IFS= read -r var
do
/home/mydir/"$var"
done < "$input"
Now i want to find whether the file is in that directory for more than 5 hours in a if loop.
How to do that ?
stat(1)
. – Sep 06 '15 at 14:02