Hello,
Can anyone help me out in giving a script for my requirement please..
I have a number of files in a directory like
somenumber.0100
somenumber.0130
somenumber.0159
somenumber.0300
somenumber.0330
somenumber.0525
.
.
.
here, the number after the dot is the time (hhmm)
I need a script to list out all such files between 2 different times.
For example, This needs to satisfy different conditions like:
-files between 0100 and 0130 (mm of start < mm of end)
-files between 0100 and 0300 (hh of start > hh of end)
-files between 0100 and 0359 (mm of start < mm of end)
-files between 0159 and 0500 (mm of start > mm of end)
and also to pull a particular information/pattern from each of the listed files say if 50 files are listed get 50 patterns (one from each) but the pattern wud be similar... how to iterate over 50 files?
Your help is greatly appreciated Thanks..