rpjday wrote:
> On Thu, 1 Feb 2001, Michael Pelley wrote:
>
> > Folks,
> >
> > I must be going through cronic brain-fade, but how can I find all files on a
> > system that were created on a specific date? I looked at find, but I can't
> > see any way to use that.
>
> you can't since creation time is not stored with any unix file. there
> are three timestamps you can examine:
>
> $ ls -l /etc/passwd most recent contents modified
> $ ls -lu /etc/passwd most recent access
> $ ls -lc /etc/passwd most recent status change
>
> that last one refers to the most recent time the inode contents were
> changed. no creation time. never has been.
>
That is interesting. I had not thought that through torealise that the creation
date gets lost as soon as a file is modified. Of couse, I am normally worried
about mod times anyway.
Assuming that he IS wanting modified date how would he do that?
figure out the number of days since the date in question say, 5
find . -mtime 5
should do it
BTW I could not find a good way to determin the number of days between two dates
using bash. What would be a good way to do this?
Bret
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list