how in puttyHow can iI search for a specific string in files from a specific date?
forFor example i, I have 3 files named 'a1' dated: 20 Feb, 'a2' dated 21 Feb, 'a3' dated 22 Feb.
'a1' dated: 20 Feb,
'a2' dated 21 Feb,
'a3' dated 22 Feb.
now iNow I want to search for a certain string like 'JMS111' in all files where date = '21 Feb'.
iI tried below commands but didnt get successwasn't successful:
ls -lt |grep 'JMS111' -ctime 2019/02/21
find -name '*.xml' -type f -printf '%Tw:%h/%f\0' | grep 'JMS111'