DREF=/tmp/dref
# set file time to one second before midnight of today in
# this example midnight is 201810120000 %Y %m %d %H %S format (with no spaces)
touch -t 201810115959 $DREF
ls -a /etc /opt /foo /bar /farkle | while read fname
do
# regular file from today
if [[ $fname -nt $DREF && -f $fname ]]; then
echo $fname
fi
done > todays_files
$rm $DREF
touch -mt $(date +%Y%m%d0000) /tmp/start_of_today # Create a reference file with a timestamp starting at 00:00 today
find /etc /opt /tmp -type f -newer /tmp/start_of_today -ls # Search for files in these 3 directories that are newer than the reference and list them.
The output is not quite the same as ls -l but it should be usable. It is far safer than trying to interpret the output from ls -l