Hi all,
I have to remove certain files (eg: .log) older than days in QNX 7.0 based embedded system. I tried find . -mtime . But it is giving me weird results. Did I understand the command correctly?
Thanks,
Lullaby
Hi all,
I have to remove certain files (eg: .log) older than days in QNX 7.0 based embedded system. I tried find . -mtime . But it is giving me weird results. Did I understand the command correctly?
Thanks,
Lullaby
The mtime option lists all files that have been modified between NOW and X number of days ago. It does not tell you when they were created (could be years ago).
Using this link
serverfault.com/questions/12282 … -than-date
I would I believe you want
touch -t 201003160120 some_file
find . ! -newer some_file
Tim