I am currently trying to use the "find" command with symbollic links created by a tcl script that are pointing at another file in another directory (RH5). My script is written in bash, however:
find /home/directory/subdirectory -name *.gz -type f -printf '%T@ %p\n' | sort -n | tail -n 1 | awk'{print $1}'
I use this as my go to line to find the epoch time of the latest file that populated the directory given the search criteria that I can change as I need. For some reason, it doesn't work with link files. It returns no results.
I know rubberman will probably answer first lol.