I have files:
hallo_flower.php
hallo_house.php
I need to rename them to:
tjena_flower.php
tjena_house.php
I have files:
hallo_flower.php
hallo_house.php
I need to rename them to:
tjena_flower.php
tjena_house.php
Something like this?
for f in *.php; do mv $f `echo $f | sed 's/hallo/tjena/'`; done
It assumes you are using a shell like bash.
if using bash shell, no need to call external command.
for f in *.php; do
mv "$f" "${f/hallo/tjena}"
done