summaryrefslogtreecommitdiff
path: root/scripts/idgi/rename.sh
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2013-08-09 09:33:40 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2013-08-09 09:33:40 -0400
commitc1550c8b525521251d8213740dc56371644dc708 (patch)
tree7e25fdc98262bc65a71906a395275f8e46f0c3ea /scripts/idgi/rename.sh
parenta7cad3dea595698294e55673b10b4380315a8013 (diff)
Prod commit #2
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