Skip to main content
grammar tweaks
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

How to search for a specific string in files from a specific date?

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'

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'

How to search for a specific string in files from a specific date?

How can I search for a specific string in files from a 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 for a certain string like 'JMS111' in all files where date = '21 Feb'.

I tried below commands but wasn't successful:

ls -lt |grep 'JMS111' -ctime 2019/02/21 
find -name '*.xml' -type f -printf '%Tw:%h/%f\0' | grep 'JMS111'
deleted 41 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 238

Putty - How to search specific string in specific date

Need help, can anyone please advise that in Putty 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'

Putty - How to search specific string in specific date

Need help, can anyone please advise that in Putty how 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'

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'
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265
Source Link
Loading