summaryrefslogtreecommitdiffstats
path: root/rename.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rename.sh')
-rwxr-xr-xrename.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/rename.sh b/rename.sh
new file mode 100755
index 0000000..eb2d1b1
--- /dev/null
+++ b/rename.sh
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+suffix=$(date "+%Y%m")
+for fullname in maps/*.img; do
+ name=$(basename "$fullname" .img)
+ mv "$fullname" "maps/$name-$suffix.img"
+done
+ \ No newline at end of file