✨ backup-mtime: print out a shell script to restore mtimes to the current state
parent
a4d7f1d215
commit
03d96732eb
@ -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…
Reference in New Issue