rdvm5w
Last Updated: February 25, 2016
·
608
· filosottile
A336b0fe148e72a16744805d059f812a

Copy the mtime from one file to another

This one-liner is useful to copy the last-modified attribute for example from a .less file to the generated .css, maybe for syncing purposes.

touch --date="$(stat --printf "%y" style.less)" -m style.css
Say Thanks
Respond
Filed Under