I want to change directory to perform a task in each directory. Following is the code:
for i in {1..10}
do
cd dir/subdir$i
bla... bla.. bla..
done
However I am getting error:
not found [No such file or directory]
I have tried the following but still getting the same above error:
cd $(echo dir/subdir"$i")
cd $(eval dir/subdir"$i")