Bash in replace – changing file names via script
So you have a group files with an unuseful name for another program or service you are using and you want to rename the whole group. Here is the solution: renamer.sh #!/bin/bash # renames.sh # basic file renamer criteria=$1 re_match=$2 replace=$3 for i in $( ls *$criteria* ); do src=$i tgt=$(echo $i | sed -e…