bash
#!/bin/bash cd ~/Dropbox/Notes/RoamNotes array=() filtered_array=() mapfile -d $'\0' array < <(find . -print0 ) for (( i=0; i<${#array[@]}; i+=1 )); do filtered_array+=$(stat "${array[$i]}") done echo ${array[2]} # echo ${filtered_array[2]} # i=2 # echo $(stat "${array[$i]}") # filtered_array+=$(stat "${array[$i]}") echo ${filtered_array[2]}