renaming multiple files (bash)
I had to rename many .phtml files, so that their extension will change to .php. This does the trick:
for i in *.phtml; do mv $i ${i%.phtml}.php; done
I had to rename many .phtml files, so that their extension will change to .php. This does the trick:
for i in *.phtml; do mv $i ${i%.phtml}.php; done
You must be logged in to post a comment.