Last Updated: February 25, 2016
·
963
· filosottile

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