projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e9eb55
)
Added a printing of what is done.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 6 Jan 2012 12:50:07 +0000
(13:50 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 6 Jan 2012 12:50:07 +0000
(13:50 +0100)
mvdatedir.sh
patch
|
blob
|
history
diff --git
a/mvdatedir.sh
b/mvdatedir.sh
index
2bc58d2
..
b6931d8
100755
(executable)
--- a/
mvdatedir.sh
+++ b/
mvdatedir.sh
@@
-27,6
+27,7
@@
while [[ "$1" ]]; do
if [[ -f "$1" ]]; then
dir=$(date -r "$1" +%Y/%b)
mkdir -p ${dir}
+ echo "$1 -> ${dir}"
mv "$1" ${dir}
else
echo "Ignore: $1 is not a regular file."