I use this command to create a list of files.
ls *.ini > filenames
the contents look like:
$> cat filenames
I need to be able to read that list into an array in a bash script. How would I start about doing this. I've tried :
cat filenames | read fileList
But because it only reads a single line of input I only get the first filename. I'm new to shell scripting so I would appreciate any help.