Nope. From the rename man page, the arguments
from and
to are patterns, not sed commands. Using rename, you can do it in two passes:
Code:
$ rename pun holiday_pun *.JPG
$ rename .JPG _home.JPG *.JPG
otherwise use a for loop:
Code:
for file in *.JPG
do
mv $file $(echo $file | sed 's/\(.\{8\}\)/holiday_\1_home/')
done