How to rename post names and slugs in bulk?

I have nearly more than 10000 posts in my WordPress site. Now, I want to add(concatenate) a text to all my posts’ names & URLs under a certain category alone. How to do this task in an easy way? Manually work seems very time-consuming.

It is now, before renaming: Post name:152, slug: After renaming it should be: Post name:text-152, slug: