From c1550c8b525521251d8213740dc56371644dc708 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Fri, 9 Aug 2013 09:33:40 -0400 Subject: Prod commit #2 --- scripts/idgi/rename.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/idgi/rename.sh (limited to 'scripts/idgi/rename.sh') 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 -- cgit v1.2.3-70-g09d2