The purpose of those comands are to find the newest file in a directory acvrdind to system date, and it has to be recursively found in each directory.
The problem is that i want to list in a long format every found file, but the commands i use produce unexpected results ,so the output lists in a long format the files located in the path working directory.
ie
i tried 2 ways but not working
1. touch -t YYYYMMDD filename. ok
2. find -newer filename -exec ls -lrt ´{} \; · It doesn work
the second trial i used is:
find -newer filename > anotherfile
while read ine
do
ls -lrt "$line"
done < another file
In the above examples keeps listing files located in the path working directory not the desired files (The newest one en each directory)
Why this happens?
id appreciate any help and your support gurus.
Thanks
ie
output