I have a shell script ren.sh
#!/bin/bash
/usr/bin/mv /home/imp/imp/msgs/$1.PK1 /home/imp/imp/msgs/$1.BRD
/usr/bin/mv /home/imp/imp/msgs/$1.PK2 /home/imp/imp/msgs/$1.MIX
It works fine, but it only moves 2 files at a time (*.PK2
and *.PK1
).
I'd like for it to move all existing *.PK1
and *.PK2
files to *.MIX
and *.BRD
files
Is this possible?