I need to modify this grep to search for files generated only within last 2 hrs. Can you pls suggest how to achieve that by modifying my grep or by some other method in my shell script. pls help me guys.. this is urgent.
Command we tried using to grep ERROR from lastest 1 log files from 5 logs files available in that particular directory is:
grep ERROR 'ls -ltr | tail -1'
but this command is not working.. for me its saying.. cannot open DistributeImageFilesToTarget_10_dataLocations_PhillipinesDataLocations.xml.log
if i give ls -lrt for all the files in that diretory