Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 266
Source Link
user86683
  • 381
  • 1
  • 4
  • 11

Find all zip files created today in a directory and its sub directories based on a pattern

I have multiple zip files in a directory and its sub directories with the pattern ACCT_DOC. example T.6593.ACCT_DOC.1054.1_0.20170220.111425.zip T.12561.ACCT_DOC.1003.1_0.20160121.221947.zip

I need a list of all the files matching the pattern ACCT_DOC that were created today. The YYYYMMDD is part of the file naming convention

i tried using find . -type f -name 'ACCT_DOC.date '+%Y%m%d'.zip' but it is not working. Please help