Remove files newer than X day and hour

filesrmtimestamps

I want to remove files, more specifically, symbolic links of /usr/include that are newer than 2 JUN 22:27

How can I do this?

Best Answer

You might want to use find -newermt.

Make sure to review files to be removed first:

find /usr/include -type l -newermt "Jun 2 22:27"

Use -delete to perform actual removes.

find /usr/include -type l -newermt "Jun 2 22:27" -delete