diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2013-08-09 09:33:40 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2013-08-09 09:33:40 -0400 |
| commit | c1550c8b525521251d8213740dc56371644dc708 (patch) | |
| tree | 7e25fdc98262bc65a71906a395275f8e46f0c3ea /scripts/idgi/rename.sh | |
| parent | a7cad3dea595698294e55673b10b4380315a8013 (diff) | |
Prod commit #2
Diffstat (limited to 'scripts/idgi/rename.sh')
| -rwxr-xr-x | scripts/idgi/rename.sh | 12 |
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 |
