Using xags
find . | xargs rename 's/\.xml$/\.html/i'Using exec
find . -exec rename 's/\.xml$/\.html/i' {} +Above commands recurrsively replace files within inner directories too. If you want to do it for current directory only you can use -prune.
i.e
find . -prune | xargs rename 's/\.xml$/\.html/i'
find . -prune -exec rename 's/\.xml$/\.html/i' {} +
A nice word on your part.
ReplyDelete