summaryrefslogtreecommitdiffstats
path: root/fix_date
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-14 08:54:51 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-14 08:54:51 +0200
commit62579b8f93b43876b96ccb83ddb11fe6886190b7 (patch)
treed686d39a88842a62cfe3b3c47164771414ee02f1 /fix_date
parente4c011c5c577d38a76a84da6449e859c9cdb3f5b (diff)
downloadbin-62579b8f93b43876b96ccb83ddb11fe6886190b7.zip
bin-62579b8f93b43876b96ccb83ddb11fe6886190b7.tar.gz
add fix_date
Diffstat (limited to 'fix_date')
-rwxr-xr-xfix_date5
1 files changed, 5 insertions, 0 deletions
diff --git a/fix_date b/fix_date
new file mode 100755
index 0000000..a5c6b14
--- /dev/null
+++ b/fix_date
@@ -0,0 +1,5 @@
+#! /bin/sh
+DIR=${1:-$HOME}
+TMP=/tmp/_date
+touch $TMP
+find $DIR -newer $TMP -exec touch '{}' \;