diff options
| author | Julie Lala <jules@okfoc.us> | 2014-06-24 18:52:07 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-06-24 18:52:07 -0400 |
| commit | 948926970571793e774ebf34c16e14ef8e694062 (patch) | |
| tree | 90250502c299fc130efbd4c54a62e3c158cb7acd /scripts/idgi/rename.sh | |
| parent | 0e9eb8b4fc0ef43f91b69749f276cadf2d3bb3ad (diff) | |
| parent | c14e6d4356a2c4d9981a6808ef19edb66fc96e51 (diff) | |
Merge branch 'master' of dumpfm:/pichat/repo
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 |
