summaryrefslogtreecommitdiff
path: root/scripts/idgi/rename.sh
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2014-06-24 18:52:07 -0400
committerJulie Lala <jules@okfoc.us>2014-06-24 18:52:07 -0400
commit948926970571793e774ebf34c16e14ef8e694062 (patch)
tree90250502c299fc130efbd4c54a62e3c158cb7acd /scripts/idgi/rename.sh
parent0e9eb8b4fc0ef43f91b69749f276cadf2d3bb3ad (diff)
parentc14e6d4356a2c4d9981a6808ef19edb66fc96e51 (diff)
Merge branch 'master' of dumpfm:/pichat/repo
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