title: How do I capture the output from the ls or find command to store all file names in an array?
body: <p>Need to process files in current directory one at a time. I am looking for a way to take the output of <code>ls</code> or <code>find</code> and store the resulting value as elements of an array. This way I can manipulate the array elements as needed.</p>