From: Francois Fleuret Date: Fri, 6 Jan 2012 12:50:07 +0000 (+0100) Subject: Added a printing of what is done. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=90578f0ab959c9dcd4a53fc5a482850119281dba;p=scripts.git Added a printing of what is done. --- diff --git a/mvdatedir.sh b/mvdatedir.sh index 2bc58d2..b6931d8 100755 --- 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."