Quote:
Originally Posted by
methyl
filename_DD_MM_YYYY_HHMMSS.log
I Design This Step
Quote:
Originally Posted by
methyl
Questions:
How many files in directory /export/home/dell/log ?
more than 10000 files
Quote:
Originally Posted by
methyl
Are there any subdirectories under /export/home/dell/log ? (This question is about using unix "find").
no subdirectories only files
Quote:
Originally Posted by
methyl
Is every file in directory /export/home/dell/log of the form:
filename_DD_MM_YYYY_HHMMSS.log ?
the all of the under /export/home/dell/log with this format
LOG_FILE_`date '+%d_%m_%Y_%H%M%S'`.log
Quote:
Originally Posted by
methyl
Is the file timestamp the same as the time in the file name?
i make this step when i generate i log file t write the status the only thing is difference is the time stap and date couse off of this file is running every week and i have similler file will check and make log every day
for example:-
checkconnect_20_03_2007_180231.log
checkconnect_21_03_2007_180231.log
checkconnect_22_03_2007_180231.log
Quote:
Originally Posted by
methyl
Are there any underscore "_" or full stop "." or space " " characters in any "filename" string?
some files have "_" and some files not
Quote:
Originally Posted by
methyl
Is indexing these logs a one-off exercise or will it be run once per day at the end of each day (for example)?
i didn't know what you are take about
Note:
for the first thing i want to make script
# script.bash _DD_MM_YYYY_ _DD_MM_YYYY_
select files which created in the two date and sort it by time stamp this make redirection into file
is my main problem
data where select from the following path /export/home/dell/log
file name format is the following
LOG_FILE_`date '+%d_%m_%Y_%H%M%S'`.log
Question:-
# find /export/home/dell/log -name *_20_04_2009_*
the out of this command give me the file sorted by the time stamp
is that right or i make some thing wrong
and if i hope to make this command
# find /export/home/dell/log -name *_20_04_2009_* and *_21_04_2009_* sorted also by time stamp what is the syntex of the command