For example:
I have 100 folder names saved in a text file, how can I apply different command line in the same for loop for every 10 names?
In other words If I want to rename every 10 folders with a different name how can I apply the mv command in the same for loop for every 10 items in the text file?
#!/bin/bash -f
source=PATH TO THE DATA (100 FOLDERS)
for f in $(cat text.txt); do
mv ${source}/"old folder name" ${source}/" new folder name"
done