Skip to main content
3 of 4
deleted 41 characters in body
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 238

How to search specific string in specific date

how in putty can i search specific string in specific date

for example i have 3 files named 'a1' dated: 20 Feb, 'a2' dated 21 Feb, 'a3' dated 22 Feb.

now i want to search certain string like 'JMS111' in all files where date = '21 Feb'

i tried below commands but didnt get success

ls -lt |grep 'JMS111' -ctime 2019/02/21 
find -name '*.xml' -type f -printf '%Tw:%h/%f\0' | grep 'JMS111'