I\'m trying to store the files listing into an array and then loop through the array again. Below is what I get when I run ls -ls command from the console.
ls -ls
Here's a variant that lets you use a regex pattern for initial filtering, change the regex to be get the filtering you desire.
files=($(find -E . -type f -regex "^.*$")) for item in ${files[*]} do printf " %s\n" $item done