backup-mtime: print out a shell script to restore mtimes to the current state

master
neingeist 9 months ago
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…
Cancel
Save