2015-08-07 02:21:07 -0500, Peng Yu: > 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? [...]
With zsh, touch -r /path/to/*(om[1]) file Would set file's time to that of the newest non-hidden file in /path/to. -- Stephane