Added a printing of what is done.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 6 Jan 2012 12:50:07 +0000 (13:50 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 6 Jan 2012 12:50:07 +0000 (13:50 +0100)
mvdatedir.sh

index 2bc58d2..b6931d8 100755 (executable)
@@ -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."