-r, --reference
Use this FILE's times instead of current time.
An option of touchx.
Usage
touchx -r FILE FILE...
touchx --reference=FILE FILE...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-r | --reference | FILE | use this FILE's times instead of current time |
Examples
Give one file the timestamps of another
touchx -r original.jpg edited.jpgCopy just the modification time, and only to files that already exist
touchx -c -m -r original.jpg edited.jpg report.pdfHelp in the terminal
gnux help touchx --reference