View Single Post
  #1 (permalink)  
Old 07-20-2006
dsravan dsravan is offline
Registered User
 

Join Date: Jul 2006
Posts: 180
Counting files in a directory that match a pattern

I have 20 files in a direcotry like BARE01_DLY_MKT_YYYYMMDD. The MKT differes for all these files but the remaining syntax remains the same for a particular day. If I am checking for today I need to make sure that there are 20 files that start with BARE01_DLY_MKT_20060720. How can I write a shell script to do this? I think I have to use for loop but don't know how to check for today or not. Kindly help.
Reply With Quote
Forum Sponsor