Moin,
assuming the command looks like this:
Code:
script.sh MM/DD/YYYY hh:mm-hh:mm
you could proceed like this (untested, you have to check if the Solaris touch command supports these options):
Code:
# create 2 timestamps YYYYMMDDhhmm to use in touch command
TSTAMP1=`echo "$1 $2" | sed -r 's|([0-9]+)/([0-9]+)/([0-9]+) ([0-9]+):([0-9]+)-[0-9]+:[0-9]+|\3\2\1\4\5|'`
TSTAMP2=`echo "$1 $2" | sed -r 's|([0-9]+)/([0-9]+)/([0-9]+) [0-9]+:[0-9]+-([0-9]+):([0-9]+)|\3\2\1\4\5|'`
# in your example the values would be:
# TSTAMP1=200810011730
# TSTAMP2=200810011745
# now create 2 files for find
touch -m -t $TSTAMP1 cmp_file1
touch -m -t $TSTAMP2 cmp_file2
# find the files with modification times between cmp_file1 and cmp_file2
find /path/to/directory -newer cmp_file1 ! -newer cmp_file2 -print
hth
Jan