1 |
>>>>> On Mon, 30 Mar 2009, ABCD wrote: |
2 |
|
3 |
> Personally, I would use |
4 |
|
5 |
> find "${D}" -type f \! -newermt "@${stamp1}" -exec \ |
6 |
> touch -c -d "@${stamp1}" {} + |
7 |
|
8 |
> and |
9 |
|
10 |
> find "${D}" -type f -newermt "@${stamp2}" -exec \ |
11 |
> touch -c -d "@${stamp2}" {} + |
12 |
|
13 |
> to avoid an unneeded call to xargs. |
14 |
|
15 |
Right. And it can be done in one command: |
16 |
|
17 |
find "${D}" -type f \ |
18 |
\( \! -newermt "@${stamp1}" -exec touch -c -d "@${stamp1}" {} + \ |
19 |
-o -newermt "@${stamp2}" -exec touch -c -d "@${stamp2}" {} + \) |
20 |
|
21 |
Ulrich |