summaryrefslogtreecommitdiff
path: root/scripts/idgi/rename.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/idgi/rename.sh')
-rwxr-xr-xscripts/idgi/rename.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/idgi/rename.sh b/scripts/idgi/rename.sh
new file mode 100755
index 0000000..18af639
--- /dev/null
+++ b/scripts/idgi/rename.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+FILE="filenames.list.txt"
+exec < $FILE
+while read LINE
+ do
+ NEWL=${LINE/%gif/removed.gif}
+ NEWL=${NEWL/%jpg/removed.jpg}
+ NEWL=${NEWL/%jpeg/removed.jpeg}
+ NEWL=${NEWL/%png/removed.png}
+ CMDLINE="mv /home/dumpfmprod/prod/$LINE /home/dumpfmprod/prod/$NEWL"
+ $CMDLINE
+ done