1 2 3 4 5 6 7
#!/bin/sh for test in test-*; do if test "$(expr substr "$test" $((${#test}-1)) ${#test})" == ".d"; then continue; fi echo - test $(expr substr "$test" 6 ${#test}) ./$test done