Let's say that we need to rename some folders from FOO to FOO.locked. There are thousands of them. My approach is as follows:
having a file named /tmp/repos with this content:
I run the following line:
$ while read i; do mv $i $i.locked; done < /tmp/repos
And that's all for that simple task of renaming a lot of files/folders.
The result is: