From 90578f0ab959c9dcd4a53fc5a482850119281dba Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 6 Jan 2012 13:50:07 +0100 Subject: [PATCH] Added a printing of what is done. --- mvdatedir.sh | 1 + 1 file changed, 1 insertion(+) 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." -- 2.39.5