With the Z-Shell:
Code:
zsh 4.3.4% touch Test\ Fish#10125#STAR.txt Test\ Fish#52134#MOON.txt Test\ Fish#32598#CLOUD.txt Test\ Fish#66789#STORM.txt
zsh 4.3.4% autoload -U zmv
zsh 4.3.4% zmv '*' '${f// /}'
zsh 4.3.4% ls
TestFish#10125#STAR.txt TestFish#32598#CLOUD.txt TestFish#52134#MOON.txt TestFish#66789#STORM.txt
zsh 4.3.4% zmv '*' '$f:r_encrypted.txt'
zsh 4.3.4% ls
TestFish#10125#STAR_encrypted.txt TestFish#52134#MOON_encrypted.txt
TestFish#32598#CLOUD_encrypted.txt TestFish#66789#STORM_encrypted.txt
zsh 4.3.4% zmv '*' '${f//_encrypted/}'
zsh 4.3.4% ls
TestFish#10125#STAR.txt TestFish#32598#CLOUD.txt TestFish#52134#MOON.txt TestFish#66789#STORM.txt