Created
July 11, 2018 19:32
-
-
Save simbalinux/69184fa6934d70436d1de5efb3a96197 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
raw=/path/to/dir | |
files=("$raw"/*) | |
for each in "${files[@]}"; do | |
echo "$each" | |
sleep 3 | |
done | |
count=${#files[@]} | |
files_ordered=() | |
for (( i = 0; i < count; i++ )); do | |
files_ordered+=("$raw/out$i.whatever") | |
done | |
#do whatever here "${files_ordered[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment