Please help me with a newbie ksh question:
I want a script in ksh (under Solaris 8 - SPARC) who runs a "ls -lR" command in some directory and it looks after all the files with the same date as the current one and/or created in the last 24 hours (or N hours).
The script should do:
- if no files with the same date were found display "no new files found..."
- otherwise display "new files found..." and also all the lines (only those lines from my "ls -lR" command)
and/or
the same for the files created in the last N hours.
I thought this is very easy but I encountered difficulties when I tried to avoid displaying files with the same day, month but not the same year...
BTW the part with "the same date" might be done in one line command?