I wrote a small shell script to iterate through folder with names having numbers in them. The script is as below.
#!/bin/bash
for (( i = 100; i < 1000; i++))
do
cp test0$i/test.out executables/test0$i.out
done
here he script traverses through test0100 .. to test0999. I want to enhance this script to traverse from test0000 to test1100 folders. I am not able to do that.
I am new to shell scripting. Any help is appreciated.