touch -t 12100000 date
Теперь с помощью find ищем все файлы, старше заданной даты:find . -newer date
Выдержка из man touch:
-t timeВыдержка из man find:
Use the specified time instead of the current time. The option-argument shall be a decimal number of the form:
[[CC]YY]MMDDhhmm[.SS]
where each two digits represents the following:
MM
The month of the year [01,12].
DD
The day of the month [01,31].
hh
The hour of the day [00,23].
mm
The minute of the hour [00,59].
CC
The first two digits of the year (the century).
YY
The second two digits of the year.
SS
The second of the minute [00,60].
-newer file
File was modified more recently than file. If file is a symbolic link and the -H option or the -L option is in effect, the modification time of the file it points to is always used.
Комментариев нет:
Отправить комментарий