1 2 3 4 5 6 7 8 9
#!/bin/bash LIST=(*) ARR_SZ=${#LIST[@]} for ((i = 0; i < ARR_SZ; i++)) do echo "${LIST[$i]}" done;