I have stored a couple of file names in a text file by the name new1.txt in my home directory, now i'm using a loop to list all the files in the directory they are present in. I am able to write the command to perform this
while read in; do ls -lrt /newusr/home/logs/"$in"; done < new1.txt
These logs were generated yesterday, what I want is to find all the files that were generated after 2pm yesterday, I tried inserting a grep statement but i think i wrote it wrong
while read in; do ls -lrt /prdusr/rhd/prdoper/opLogDir/"$in"; done < new1.txt | grep "Dec 18 {14-23}"
. Is there anything wrong with the syntax or any other way i can achieve this.