✨ backup-mtime: print out a shell script to restore mtimes to the current state
This commit is contained in:
parent
a4d7f1d215
commit
03d96732eb
1 changed files with 7 additions and 0 deletions
7
backup-mtime
Executable file
7
backup-mtime
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# print out a shell script to restore mtime to the current state
|
||||||
|
#
|
||||||
|
# (may need gnu coreutils.)
|
||||||
|
#
|
||||||
|
find "$@" -exec \
|
||||||
|
stat --format="touch --no-dereference -m -d '%y' '%n'" {} \;
|
Loading…
Add table
Add a link
Reference in a new issue