Peng Yu <[email protected]> writes:

> Hi, `touch -r` allows one to set the time of a file same as a
> reference file. What if one wants to set the time to be the last time
> of multiple files? Is there an easy way to do so?

$ touch -d @$(stat -c %s $files | sort -n | tail -n1) $file

Andreas.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to