blob: 83676313ef6c534c01618a58d01eb5df2370d171 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
cd "$TEST"
now=$(epoch_time)
"$XTOUCH" -mt "@$((now - 60 * 60 * 24 * 7))" last_week
"$XTOUCH" -mt "@$((now - 60 * 60 * 49))" two_days_ago
"$XTOUCH" -mt "@$((now - 60 * 60 * 25))" yesterday
"$XTOUCH" -mt "@$((now - 60 * 60))" one_hour_ago
"$XTOUCH" -mt "@$((now))" now
"$XTOUCH" -mt "@$((now + 60 * 60 * 24))" tomorrow
bfs_diff . \! -name . \
\( -mtime -1 -exec printf -- '-mtime -1: %s\n' {} \; -o -prune \) \
\( -mtime 1 -exec printf -- '-mtime 1: %s\n' {} \; -o -prune \) \
\( -mtime +1 -exec printf -- '-mtime +1: %s\n' {} \; -o -prune \)
|