This commit is contained in:
Antonio J. Delgado 2024-11-20 11:25:32 +02:00
parent 34d14b6851
commit 10aad838bf

View file

@ -2,7 +2,7 @@
while read -r dir
do
echo "Checking dir '${dir}'..."
last_file=$(ls -ht -- "${dir}" | head -n1)
last_file="${dir}/$(ls -ht -- "${dir}" | head -n1)"
echo "Last modified file is '${last_file}'"
last_file_time=$(stat -c %Y -- "${last_file}")
echo "Last modification time of the file is '${last_file_time}'"